oreparaz / p256

ECDSA P-256 signature verification in a single C file targetting embedded use
14 stars 6 forks source link

tests: add rudimentary stack size check. #23

Closed oreparaz closed 1 year ago

oreparaz commented 1 year ago

We brew our own stack usage meter; this is very rudimentary and not very stable. We will need to change this at some point.

p256_verify takes about 3 kB of stack, depending on the architecture. Some results from running in CI:

Architecture stack used (bytes)
armv6 2579
armv7 2667
riscv64 3271
aarch64 3271
ppc64le 3367
s390x 4087

Closes https://github.com/oreparaz/p256/issues/8.