oreparaz / p256

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

add support for NIST P-384 and NIST P-521 #6

Open oreparaz opened 3 years ago

oreparaz commented 3 years ago

We could easily add support for ECDSA over NIST P-384 (akan secp384r1) and the enormous curve NIST P-521 (secp521) since BearSSL supports them and we're already including the corresponding files in amalgamate.sh.

P-384 may be worth it since it seems supported by the yubikey's PIV applet.

We would need to write new functions similar to p256_verify, and think hard about a change to the projects name 🤔. Probably worth distributing different files (e.g. p384.c and p521.c)?