diff --git a/include/mbedtls/config.h b/include/mbedtls/config.h index a5740ac7a..33883301b 100644 --- a/include/mbedtls/config.h +++ b/include/mbedtls/config.h @@ -297,10 +297,18 @@ * Store the AES tables in ROM. * * Uncomment this macro to store the AES tables in ROM. - * */ //#define POLARSSL_AES_ROM_TABLES +/** + * \def POLARSSL_CAMELLIA_SMALL_MEMORY + * + * Use less ROM for the Camellia implementation (saves about 768 bytes). + * + * Uncomment this macro to use less memory for Camellia. + */ +//#define POLARSSL_CAMELLIA_SMALL_MEMORY + /** * \def POLARSSL_CIPHER_MODE_CBC * diff --git a/library/version_features.c b/library/version_features.c index 712b7e84c..bba5dc0b0 100644 --- a/library/version_features.c +++ b/library/version_features.c @@ -150,6 +150,9 @@ static const char *features[] = { #if defined(POLARSSL_AES_ROM_TABLES) "POLARSSL_AES_ROM_TABLES", #endif /* POLARSSL_AES_ROM_TABLES */ +#if defined(POLARSSL_CAMELLIA_SMALL_MEMORY) + "POLARSSL_CAMELLIA_SMALL_MEMORY", +#endif /* POLARSSL_CAMELLIA_SMALL_MEMORY */ #if defined(POLARSSL_CIPHER_MODE_CBC) "POLARSSL_CIPHER_MODE_CBC", #endif /* POLARSSL_CIPHER_MODE_CBC */