From 986e114dde9eb04f4d2af79dbcb2259d1c6904eb Mon Sep 17 00:00:00 2001 From: David Garske Date: Wed, 8 Jul 2026 15:30:41 -0700 Subject: [PATCH] Let WOLF_CRYPTO_CB_ONLY_AES compose with the STM32 bare AES path --- wolfcrypt/src/aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 76d4d3db38..420d3f0d78 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -231,7 +231,7 @@ block cipher mechanism that uses n-bit binary string parameter key with 128-bits #endif /* Define AES implementation includes and functions */ -#if defined(STM32_CRYPTO) +#if defined(STM32_CRYPTO) && !defined(WOLF_CRYPTO_CB_ONLY_AES) /* STM32F2/F4/F7/L4/L5/H7/WB55 hardware AES support for ECB, CBC, CTR and GCM modes */ #if defined(WOLFSSL_AES_DIRECT) || defined(HAVE_AESGCM) || defined(HAVE_AESCCM)