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: low-level ECDH API #418

Merged
merged 1 commit into from
Dec 19, 2020
Merged

Conversation

tarcieri
Copy link
Member

Adds an elliptic_curve::ecdh::diffie_hellman() function which operates on types which can be coerced to NonZeroScalar and AffinePoint for a particular elliptic curve, returning a SharedSecret

This function is an extraction of and used to implement ECDHE.

This function makes it possible to perform static ECDH exchanges, although the documentation recommends using ECDHE whenever possible.

Adds an `elliptic_curve::ecdh::diffie_hellman()` function which operates
on types which can be coerced to `NonZeroScalar` and `AffinePoint` for
a particular elliptic curve, returning a `SharedSecret`

This function is an extraction of and used to implement ECDHE.

This function makes it possible to perform static ECDH exchanges,
although the documentation recommends using ECDHE whenever possible.
@tarcieri tarcieri merged commit 6d3a69e into master Dec 19, 2020
@tarcieri tarcieri deleted the elliptic-curve/low-level-ecdh branch December 19, 2020 18:22
@tarcieri tarcieri mentioned this pull request Dec 22, 2020
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.

1 participant