Use look-up table for base

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-06-24 12:51:06 +01:00
parent 0ffb68ee3f
commit de3de773e6
4 changed files with 211 additions and 99 deletions

View file

@ -275,8 +275,8 @@ typedef struct mbedtls_cipher_info_t {
/** Name of the cipher. */
const char *MBEDTLS_PRIVATE(name);
/** Struct for base cipher information and functions. */
const mbedtls_cipher_base_t *MBEDTLS_PRIVATE(base);
/** Index to LUT for base cipher information and functions. */
uint8_t MBEDTLS_PRIVATE(base_idx) : 5;
/** Full cipher identifier. For example,
* MBEDTLS_CIPHER_AES_256_CBC.