Merge branch 'feature/mbedtls_ctr' into 'master'

mbedtls: Add config option for CTR Mode

See merge request sdk/ESP8266_RTOS_SDK!566
This commit is contained in:
Wu Jian Gang
2018-10-18 20:37:44 +08:00
2 changed files with 11 additions and 1 deletions

View File

@ -248,6 +248,13 @@ config MBEDTLS_SSL_ALPN
help help
Disabling this option will save some code size if it is not needed. 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 config MBEDTLS_SSL_SESSION_TICKETS
bool "TLS: Support RFC 5077 SSL session tickets" bool "TLS: Support RFC 5077 SSL session tickets"
default n default n

View File

@ -480,7 +480,10 @@
* *
* Enable Counter Block Cipher mode (CTR) for symmetric ciphers. * 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 * \def MBEDTLS_CIPHER_NULL_CIPHER