-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k256/p256/p384: Elliptic Curve Diffie-Hellman
Adds type aliases for the high-level generic Elliptic Curve Diffie-Hellman (Ephemeral) implementation introduced in RustCrypto/traits#251.
- Loading branch information
Showing
8 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//! Elliptic Curve Diffie-Hellman (Ephemeral) Support. | ||
use crate::Secp256k1; | ||
|
||
/// NIST P-256 Ephemeral Diffie-Hellman Secret. | ||
pub type EphemeralSecret = elliptic_curve::ecdh::EphemeralSecret<Secp256k1>; | ||
|
||
/// Shared secret value computed via ECDH key agreement. | ||
pub type SharedSecret = elliptic_curve::ecdh::SharedSecret<Secp256k1>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//! Elliptic Curve Diffie-Hellman (Ephemeral) Support. | ||
use crate::NistP256; | ||
|
||
/// NIST P-256 Ephemeral Diffie-Hellman Secret. | ||
pub type EphemeralSecret = elliptic_curve::ecdh::EphemeralSecret<NistP256>; | ||
|
||
/// Shared secret value computed via ECDH key agreement. | ||
pub type SharedSecret = elliptic_curve::ecdh::SharedSecret<NistP256>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters