wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Benchmark ECDSA: use digest size instead of key size

Open SparkiDev opened this issue 1 month ago • 0 comments

Description

The key size can be larger than the maximum digest size supported by the sign and verify APIs. Calculate a reasonable digest size for the key size and bound it on the maximum digest size.

Fixes #9492

Testing

./configure --disable-shared CFLAGS=-DHAVE_ECC521 ./wolfcrypt/benchmark/benchmark -p521 -ecc

Checklist

  • [ ] added tests
  • [ ] updated/added doxygen
  • [ ] updated appropriate READMEs
  • [ ] Updated manual and documentation

SparkiDev avatar Dec 04 '25 23:12 SparkiDev