diff --git a/IDE/STM32Cube/default_conf.ftl b/IDE/STM32Cube/default_conf.ftl index b976c55df2..5e92dc1ddf 100644 --- a/IDE/STM32Cube/default_conf.ftl +++ b/IDE/STM32Cube/default_conf.ftl @@ -534,6 +534,25 @@ extern ${variable.value} ${variable.name}; #define NO_MD5 #endif +/* ------------------------------------------------------------------------- */ +/* Crypto Acceleration */ +/* ------------------------------------------------------------------------- */ +/* This enables inline assembly speedups for SHA2, SHA3, AES, + * ChaCha20/Poly1305 and Ed/Curve25519. These settings work for Cortex M4/M7 + * and the source code is located in wolfcrypt/src/port/arm/ + */ +#if defined(WOLF_CONF_ARMASM) && WOLF_CONF_ARMASM == 1 + #define WOLFSSL_ARMASM + #define WOLFSSL_ARMASM_INLINE + #define WOLFSSL_ARMASM_NO_HW_CRYPTO + #define WOLFSSL_ARMASM_NO_NEON + #define WOLFSSL_ARM_ARCH 7 + /* Disable H/W offloading if accelerating S/W crypto */ + #undef NO_STM32_HASH + #define NO_STM32_HASH + #undef NO_STM32_CRYPTO + #define NO_STM32_CRYPTO +#endif /* ------------------------------------------------------------------------- */ /* Benchmark / Test */