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

k256: impl ReduceNonZero<U512> for Scalar #474

Merged
merged 2 commits into from Dec 3, 2021
Merged

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Dec 3, 2021

Provides an impl of the ReduceNonZero trait added in RustCrypto/elliptic-curves#827, which provides a reduction from a 512-bit (64-byte) input, i.e. a "wide" reduction from an integer twice the size of the curve's order, to a Scalar which is guaranteed to be non-zero.

Based on @fjarri's work in #432

Provides an impl of the `ReduceNonZero` trait added in
#827, which provides a reduction from a
512-bit (64-byte) input, i.e. a "wide" reduction from an integer twice
the size of the curve's order, to a `Scalar` which is guaranteed to be
non-zero.

Based on @fjarri's work in #432
@tarcieri tarcieri merged commit 6942b22 into master Dec 3, 2021
@tarcieri tarcieri deleted the k256/reduce-non-zero branch December 3, 2021 21:23
This was referenced Dec 14, 2021
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.

None yet

2 participants