Merge pull request #7451 from yanrayw/7376_aes_128bit_only

Introduce config option of 128-bit key only in AES calculation
This commit is contained in:
Tom Cosgrove 2023-06-15 10:35:32 +01:00 committed by GitHub
commit 6edf8b8c7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 3467 additions and 3096 deletions

View file

@ -80,6 +80,14 @@
#include MBEDTLS_USER_CONFIG_FILE
#endif
/* Auto-enable MBEDTLS_CTR_DRBG_USE_128_BIT_KEY if
* MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH and MBEDTLS_CTR_DRBG_C defined
* to ensure a 128-bit key size in CTR_DRBG.
*/
#if defined(MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH) && defined(MBEDTLS_CTR_DRBG_C)
#define MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
#endif
/* Auto-enable MBEDTLS_MD_C if needed by a module that didn't require it
* in a previous release, to ensure backwards compatibility.
*/