-
Notifications
You must be signed in to change notification settings - Fork 723
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
Introduce EcdsaKeyPair::from_private_key_unchecked. #889
base: main
Are you sure you want to change the base?
Introduce EcdsaKeyPair::from_private_key_unchecked. #889
Conversation
From |
Sorry I lost track of this. I'm updating the base branch to be |
No worries, I got caught up in all sorts of other work as well. I’m pretty sure there was a reason why I added two test files, but I can’t remember now. I’ll look into merging the two and provide an update soon. |
Now it is my turn to apologize for the long silence. I have pushed a commit to bring the branch in line with current main. I have also looked into merging the two test files, but I’m not sure it makes sense. For one, the meaning of the This could be fixed by adding additional fields to distinguish the semantics, but I am not sure if this improves clarity? |
This PR adds
EcdsaKeyPair::from_private_key_unchecked
which creates an ECDSA key pair from the private key only.Note: The two private keys in the test case are random specimen from the NIST CAVP 186-4 ECDSA2VS Test Vectors. I think testing for short, long, and correctly sized keys should about cover it?
If merged, fixes #882.