Skip to content

Commit 95f4e06

Browse files
authored
Merge pull request wolfSSL#7747 from lealem47/cubepack_armasm
Adding ARM ASM build option to STM32CubePack config
2 parents 93ca213 + 206d3f4 commit 95f4e06

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

IDE/STM32Cube/default_conf.ftl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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 */

0 commit comments

Comments
 (0)