Topic: STM32L4a6 Brainpool Curve
Hi,
I am using the wolfcrypt benchmark to compare the performance of secp256r1, curve25519 and brainpool. Just for speed, not for size.
I am using the wolfSSL Cube Configuration file.
I obtain the fastest operations for secp256r1 with WOLF_CONF_MATH 4, ie. with WOLFSSL_SP and WOLFSSL_SP_ARM_CORTEX_M_ASM defined. With this configuration the benchmark fails for the brainpool curve, with Error Code -234 Key size error.
The fastest configuration combination for brainpool I tested was WOLF_CONF_MATH 5, ie. with WOLFSSL_SP and WOLFSSL_SP_MATH_ALL defined. But brainpool is in this configuration more than 10 times slower, than secp256r1 in the fast configuration with WOLFSSL_SP and WOLFSSL_SP_ARM_CORTEX_M_ASM defined.
Am I configuring something wrong or is this the expected behavior and brainpool curves do not work with WOLFSSL_SP_ARM_CORTEX_M_ASM?
Cheers,
Jakob