Module ecdh

Module ecdh 

Source
Expand description

ECDH-KEM implementations for NIST curves

This module provides constant-time implementations of ECDH-KEM using the NIST P-192, P-224, P-256, P-384, and P-521 curves, following standard practices for key encapsulation mechanisms. It now also includes support for Koblitz (secp256k1) and Binary (sect283k1) curves.

Re-exports§

pub use p192::EcdhP192;
pub use p192::EcdhP192Ciphertext;
pub use p192::EcdhP192PublicKey;
pub use p192::EcdhP192SecretKey;
pub use p192::EcdhP192SharedSecret;
pub use p224::EcdhP224;
pub use p224::EcdhP224Ciphertext;
pub use p224::EcdhP224PublicKey;
pub use p224::EcdhP224SecretKey;
pub use p224::EcdhP224SharedSecret;
pub use p256::EcdhP256;
pub use p256::EcdhP256Ciphertext;
pub use p256::EcdhP256PublicKey;
pub use p256::EcdhP256SecretKey;
pub use p256::EcdhP256SharedSecret;
pub use p384::EcdhP384;
pub use p384::EcdhP384Ciphertext;
pub use p384::EcdhP384PublicKey;
pub use p384::EcdhP384SecretKey;
pub use p384::EcdhP384SharedSecret;
pub use p521::EcdhP521;
pub use p521::EcdhP521Ciphertext;
pub use p521::EcdhP521PublicKey;
pub use p521::EcdhP521SecretKey;
pub use p521::EcdhP521SharedSecret;
pub use k256::EcdhK256;
pub use k256::EcdhK256Ciphertext;
pub use k256::EcdhK256PublicKey;
pub use k256::EcdhK256SecretKey;
pub use k256::EcdhK256SharedSecret;
pub use b283k::EcdhB283k;
pub use b283k::EcdhB283kCiphertext;
pub use b283k::EcdhB283kPublicKey;
pub use b283k::EcdhB283kSecretKey;
pub use b283k::EcdhB283kSharedSecret;

Modules§

b283k
ECDH-KEM with sect283k1 (B-283k)
k256
ECDH-KEM with secp256k1 (K-256)
p192
ECDH-KEM with NIST P-192
p224
ECDH-KEM with NIST P-224
p256
ECDH-KEM with NIST P-256
p384
ECDH-KEM with NIST P-384
p521
ECDH-KEM with NIST P-521