Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Review and Update #129

Open
szemerick opened this issue Sep 12, 2022 · 2 comments
Open

API Review and Update #129

szemerick opened this issue Sep 12, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@szemerick
Copy link
Contributor

szemerick commented Sep 12, 2022

High level comments / recommendations to be addressed in review:

  • Take a look and use "const" where possible
  • Should we stick with double pointers? Maybe also provide a single pointer option? Capture why somewhere
  • Should all the currently available extern calls be available or a small subset?
  • Is there a case to take SA_PLAINTEXT and other things defined in crypto_config.h and change them to enums vs #defines?

Function APIs:

  • Crypto_TC_ApplySecurity
    • Should the p_in_frame be a const pointer?
    • What assumptions can be made about the pp_enc_frame double pointer? Is this assumed pre-allocated to maximum length?
  • Crypto_TC_ProcessSecurity
    • Should int* len_ingest actually be a uint16_t?
    • Should TC_t* be used or simply a uint8_t array?
  • Crypto_TM_ApplySecurity
    • Should we be using SecurityAssociation_t* or simply providing the uint8_t array and assuming use of an internally stored active TM SPI?
  • Crypto_TM_ProcessSecurity
    • Should uint16_t len_ingest be a pointer or just passing the actual value across the board for the APIs?
@jlucas9
Copy link
Collaborator

jlucas9 commented Apr 13, 2023

Take a look and use "const" where possible

@jlucas9
Copy link
Collaborator

jlucas9 commented Jun 16, 2023

Should we stick with double pointers? Maybe also provide a single pointer option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Planned Next Sprint
Development

No branches or pull requests

4 participants