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

Add public getter APIs for mbedtls_cipher_info_t #5013

Closed
gabor-mezei-arm opened this issue Oct 5, 2021 · 1 comment
Closed

Add public getter APIs for mbedtls_cipher_info_t #5013

gabor-mezei-arm opened this issue Oct 5, 2021 · 1 comment
Labels
component-crypto Crypto primitives and low-level interfaces enhancement

Comments

@gabor-mezei-arm
Copy link
Contributor

As part of #4683, as a result of reviewing the programs there are uses of MBEDTLS_PRIVATE fields of the mbedtls_cipher_info_t structure. To avoid the access of the private fields create and use new public getter APIs for the fields of the mbedtls_cipher_info_t structure.

Accessed fields:

  • name
  • key_bitlen
  • mode

Affected files:

  • aes/crypt_and_hash.c
@gilles-peskine-arm
Copy link
Contributor

This was done in #4842.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-crypto Crypto primitives and low-level interfaces enhancement
Projects
None yet
Development

No branches or pull requests

2 participants