Skip to content
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

elliptic-curve: make SecretKey::new failible #1804

Merged

Conversation

baloo
Copy link
Member

@baloo baloo commented Mar 23, 2025

This fixes an invariant violation where you could create a secret key from an all-zero scalar and convert it to a non-zero scala.

Fixes: #1607

This fixes an invariant violation where you could create a secret key
from an all-zero scalar and convert it to a non-zero scala.
:
@baloo baloo force-pushed the baloo/elliptic-curve/failible-secret-key-new branch from 53f3f42 to 8f976ba Compare March 23, 2025 05:28
@tarcieri tarcieri merged commit de72c67 into RustCrypto:master Mar 24, 2025
12 checks passed
@baloo baloo deleted the baloo/elliptic-curve/failible-secret-key-new branch March 24, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

elliptic_curve::NonZeroScalar non-zeroness guarantee
2 participants