RustCrypto / utils

Utility crates used in RustCrypto
450 stars 130 forks source link

wycheproof2blb: secp256k1 with P1363 format #1092

Closed XuJiandong closed 4 months ago

XuJiandong commented 4 months ago

parsing ecdsa_secp256k1_sha256_p1363_test.json

tarcieri commented 4 months ago

I guess these are vectors for the IEEE P1363, which unless it also goes by some other name (which I can't verify because I don't have access to the document) we don't support.

From Wikipedia:

The IEEE Standard Association withdrew all of the 1363 standards except 1363.3-2013 on 7 November 2019.

From what I can tell this is some other form of message encoding beyond the existing ones we support.

XuJiandong commented 4 months ago

The legacy IEEE 1363 has a very simple signature format with only r + s, totaling 64 bytes. I’ve searched some P1363 signatures in the test cases, and they are unique, not just copied from other cases.

tarcieri commented 4 months ago

Aah, never heard it referred to that way. It's what we call just ecdsa::Signature or a "fixed" signature