Enum noise_rust_crypto::X25519
[−]
[src]
pub enum X25519 {}
Trait Implementations
impl DH for X25519
[src]
type Key = SecretKey
Type of private key.
type Pubkey = [u8; 32]
Type of pubkey key.
type Output = [u8; 32]
Type of output.
fn name() -> &'static str
Name of this DH function, e.g., “25519”.
fn genkey() -> Self::Key
Randomly generate a new private key.
fn pubkey(k: &Self::Key) -> Self::Pubkey
Calculate public key from a private key.
fn dh(k: &Self::Key, pk: &Self::Pubkey) -> Self::Output
Perform DH key exchange.