mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Constify cipher_wrap:mbedtls_cipher_base_lookup_table
This structure is initialized during the compilation and there is no reason it changes. Making it const allows the compiler to put it in .rodata section instead of .data one. Signed-off-by: Xavier Chapron <chapron.xavier@gmail.com>
This commit is contained in:
@ -2425,7 +2425,7 @@ const mbedtls_cipher_definition_t mbedtls_cipher_definitions[] =
|
||||
sizeof(mbedtls_cipher_definitions[0]))
|
||||
int mbedtls_cipher_supported[NUM_CIPHERS];
|
||||
|
||||
const mbedtls_cipher_base_t *mbedtls_cipher_base_lookup_table[] = {
|
||||
const mbedtls_cipher_base_t * const mbedtls_cipher_base_lookup_table[] = {
|
||||
#if defined(MBEDTLS_AES_C)
|
||||
[MBEDTLS_CIPHER_BASE_INDEX_AES] = &aes_info,
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user