-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test vectors from Project Wycheproof for secp256r1 #2007
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
packages/crypto/testdata/wycheproof/ecdsa_secp256r1_sha256_test.json
Outdated
Show resolved
Hide resolved
assert_eq!(tested, number_of_tests); | ||
} | ||
|
||
fn from_der(data: &[u8]) -> Result<[u8; 64], String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be part of the toolset in the future I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Getting this DER encoding right is actually hard. I already created a point in #2001 for potentially adding a standardized DER decoder for signatures.
Co-authored-by: Mauro Lacy <[email protected]>
2k additional tests for secp256r1 🔥