File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -534,6 +534,25 @@ extern ${variable.value} ${variable.name};
534534 #define NO_MD5
535535#endif
536536
537+ /* ------------------------------------------------------------------------- */
538+ /* Crypto Acceleration */
539+ /* ------------------------------------------------------------------------- */
540+ /* This enables inline assembly speedups for SHA2, SHA3, AES,
541+ * ChaCha20/Poly1305 and Ed/Curve25519. These settings work for Cortex M4/M7
542+ * and the source code is located in wolfcrypt/src/port/arm/
543+ */
544+ #if defined(WOLF_CONF_ARMASM) && WOLF_CONF_ARMASM == 1
545+ #define WOLFSSL_ARMASM
546+ #define WOLFSSL_ARMASM_INLINE
547+ #define WOLFSSL_ARMASM_NO_HW_CRYPTO
548+ #define WOLFSSL_ARMASM_NO_NEON
549+ #define WOLFSSL_ARM_ARCH 7
550+ /* Disable H/W offloading if accelerating S/W crypto */
551+ #undef NO_STM32_HASH
552+ #define NO_STM32_HASH
553+ #undef NO_STM32_CRYPTO
554+ #define NO_STM32_CRYPTO
555+ #endif
537556
538557/* ------------------------------------------------------------------------- */
539558/* Benchmark / Test */
You can’t perform that action at this time.
0 commit comments