mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-05 06:26:52 +00:00
AES: add config option for 128-bit keys
Add configuration options to support only 128-bit key lengths in AES calculation.
This commit is contained in:
parent
e2bf54d3d1
commit
77b9cfcea9
6 changed files with 85 additions and 1 deletions
|
|
@ -3863,6 +3863,25 @@
|
|||
|
||||
/* \} SECTION: Compile-time SSL configuration */
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
||||
*
|
||||
* Use only 128-bit keys in AES operations.
|
||||
*
|
||||
* Uncommenting this macro removes support for AES operations that are using 192
|
||||
* or 256-bit keys.
|
||||
*
|
||||
* Tradeoff: Uncommenting this macro reduces ROM footprint by ~200 bytes.
|
||||
*
|
||||
* If uncommented, uncomment also MBEDTLS_CTR_DRBG_USE_128_BIT_KEY
|
||||
*
|
||||
* Module: library/aes.c
|
||||
*
|
||||
* Requires: MBEDTLS_AES_C
|
||||
*
|
||||
*/
|
||||
//#define MBEDTLS_AES_ONLY_128_BIT_KEY_LENGTH
|
||||
|
||||
/* Target and application specific configurations
|
||||
*
|
||||
* Allow user to override any previous default.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue