1

(4 replies, posted in wolfCrypt)

Thanks for the reply.

In my case it is for a study project.
So my goal was just a comparison on the target platform.

The BSI (Federal office for information security) in Germany recommends Brainpool Curves for asymmetric crypto. Thus an optimized Brainpool implementation might be interesting for new projects that need to comply with BSI recommendations and seek comparable speeds as with secp256r1 or curve25519/ed25519.

Kind regards
Jakob

2

(4 replies, posted in wolfCrypt)

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