From 62edcc8176c614cdb13d00ce128d51e03a875202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 3 Apr 2015 16:28:19 +0200 Subject: [PATCH] Document POLARSSL_CAMELLIA_SMALL_MEMORY --- include/mbedtls/config.h | 10 +++++++++- library/version_features.c | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) 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 */