1
0
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:
Xavier Chapron
2025-04-18 09:24:05 +02:00
parent e08edcc494
commit afedef5eea
2 changed files with 2 additions and 2 deletions

View File

@ -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