Closed tlhackque closed 4 months ago
Unfortunately this is a binary field curve which libtomcrypt does not support at the moment. I cannot do much here in CryptX. You can consider opening a feature request in https://github.com/libtom/libtomcrypt (Cc: @sjaeckel)
While I understand that it's not recommended for new systems, I ran into sect571r1 (NIST B-571) signatures in a test suite's data.
It's listed in RFC5480 with OID 1.3.132.0.31. (sect571k1 is .38)
Crypt::PK::ECC doesn't have data on this, and is used by Crypt::PKCS10 to provide information about the public key. It is known by OpenSSL. This key (from the test data, found here in
570-ec-sect571r1-request.der
) is reported thusly:The OpenSSL implementation table is in ec/ec_curve.c
I'm not a crypto expert, but don't see that it would hurt to add both. Since someone put it in the test data and it is in OpenSSL, it was probably in the wild at some point...
I'm not competent (or daring) enough to try to translate the C hex byte arrays into your structures.