fix(mbedtls/gcm): Fix build failure when config MBEDTLS_HARDWARE_GCM is disabled

This commit is contained in:
harshal.patil 2023-12-27 12:19:36 +05:30 committed by Mahavir Jain
parent 66d71efb87
commit 9f461c010b

View File

@ -229,7 +229,7 @@ if(CONFIG_MBEDTLS_HARDWARE_SHA)
)
endif()
if(CONFIG_MBEDTLS_HARDWARE_GCM OR (NOT CONFIG_SOC_AES_SUPPORT_GCM AND CONFIG_MBEDTLS_HARDWARE_AES))
if(CONFIG_MBEDTLS_HARDWARE_GCM OR CONFIG_MBEDTLS_HARDWARE_AES)
target_sources(mbedcrypto PRIVATE "${COMPONENT_DIR}/port/aes/esp_aes_gcm.c")
endif()