mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(mbedtls): fix MBEDTLS_POLY1305_C build config
Closes https://github.com/espressif/esp-idf/issues/18243
This commit is contained in:
@@ -1162,12 +1162,6 @@ menu "mbedTLS"
|
||||
endmenu
|
||||
|
||||
menu "Hash functions"
|
||||
config MBEDTLS_POLY1305_C
|
||||
bool "Poly1305 MAC algorithm"
|
||||
default n
|
||||
help
|
||||
Enable support for Poly1305 MAC algorithm.
|
||||
|
||||
config MBEDTLS_RIPEMD160_C
|
||||
bool "Enable RIPEMD-160 hash algorithm"
|
||||
default n
|
||||
@@ -1618,7 +1612,7 @@ menu "mbedTLS"
|
||||
config MBEDTLS_CHACHAPOLY_C
|
||||
bool "ChaCha20-Poly1305 AEAD algorithm"
|
||||
default n
|
||||
depends on MBEDTLS_CHACHA20_C && MBEDTLS_POLY1305_C
|
||||
depends on MBEDTLS_CHACHA20_C
|
||||
help
|
||||
Enable support for ChaCha20-Poly1305 AEAD algorithm.
|
||||
|
||||
|
||||
@@ -169,7 +169,6 @@ CONFIG_MBEDTLS_HMAC_DRBG_C=y
|
||||
CONFIG_MBEDTLS_BASE64_C=y
|
||||
|
||||
CONFIG_MBEDTLS_CHACHA20_C=n
|
||||
CONFIG_MBEDTLS_POLY1305_C=n
|
||||
|
||||
#
|
||||
# End of mbedTLS Minimal Configuration Preset
|
||||
|
||||
@@ -2008,7 +2008,6 @@
|
||||
#ifdef CONFIG_MBEDTLS_CHACHA20_C
|
||||
#define PSA_WANT_KEY_TYPE_CHACHA20 1
|
||||
#else
|
||||
#undef MBEDTLS_CHACHA20_C
|
||||
#undef PSA_WANT_KEY_TYPE_CHACHA20
|
||||
#endif
|
||||
|
||||
@@ -2019,12 +2018,11 @@
|
||||
*
|
||||
* Module: library/chachapoly.c
|
||||
*
|
||||
* This module requires: MBEDTLS_CHACHA20_C, MBEDTLS_POLY1305_C
|
||||
* This module requires: MBEDTLS_CHACHA20_C
|
||||
*/
|
||||
#ifdef CONFIG_MBEDTLS_CHACHAPOLY_C
|
||||
#define PSA_WANT_ALG_CHACHA20_POLY1305 1
|
||||
#else
|
||||
#undef MBEDTLS_CHACHAPOLY_C
|
||||
#undef PSA_WANT_ALG_CHACHA20_POLY1305
|
||||
#endif
|
||||
|
||||
@@ -2520,20 +2518,6 @@
|
||||
*/
|
||||
#define MBEDTLS_PLATFORM_C
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_POLY1305_C
|
||||
*
|
||||
* Enable the Poly1305 MAC algorithm.
|
||||
*
|
||||
* Module: library/poly1305.c
|
||||
* Caller: library/chachapoly.c
|
||||
*/
|
||||
#ifdef CONFIG_MBEDTLS_POLY1305_C
|
||||
#define MBEDTLS_POLY1305_C
|
||||
#else
|
||||
#undef MBEDTLS_POLY1305_C
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \def MBEDTLS_RIPEMD160_C
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user