mbedtls: Add config option for CTR Mode

Signed-off-by: Piyush Shah <piyush@espressif.com>
This commit is contained in:
Piyush Shah
2018-10-18 14:25:14 +05:30
parent 223663f3fe
commit 44a2885d6b
2 changed files with 11 additions and 1 deletions

View File

@ -248,6 +248,13 @@ config MBEDTLS_SSL_ALPN
help
Disabling this option will save some code size if it is not needed.
config MBEDTLS_CIPHER_MODE_CTR
bool "Support CTR mode"
depends on MBEDTLS_TLS_ENABLED
default n
help
Enable Counter Block Cipher mode (CTR) for symmetric ciphers. Required for AES CTR
config MBEDTLS_SSL_SESSION_TICKETS
bool "TLS: Support RFC 5077 SSL session tickets"
default n

View File

@ -480,7 +480,10 @@
*
* Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
*/
//#define MBEDTLS_CIPHER_MODE_CTR
#ifdef CONFIG_MBEDTLS_CIPHER_MODE_CTR
#define MBEDTLS_CIPHER_MODE_CTR
#endif
/**
* \def MBEDTLS_CIPHER_NULL_CIPHER