mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation
- Even if the config MBEDTLS_HARDWARE_AES is enabled, we now support fallback to software implementation of GCM operations when non-AES ciphers are used.
This commit is contained in:
@@ -155,6 +155,12 @@
|
||||
|
||||
#ifdef CONFIG_MBEDTLS_HARDWARE_AES
|
||||
#define MBEDTLS_GCM_ALT
|
||||
#ifdef CONFIG_MBEDTLS_GCM_SUPPORT_NON_AES_CIPHER
|
||||
/* Prefer hardware and fallback to software */
|
||||
#define MBEDTLS_GCM_NON_AES_CIPHER_SOFT_FALLBACK
|
||||
#else
|
||||
#undef MBEDTLS_GCM_NON_AES_CIPHER_SOFT_FALLBACK
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* MBEDTLS_SHAxx_ALT to enable hardware SHA support
|
||||
|
Reference in New Issue
Block a user