pub trait DiffieHellman: Zeroize {
    type SSK: SharedSecretKey;
    type PK: PublicKey;

    fn diffie_hellman(&self, peer_public: &Self::PK) -> Self::SSK;
}
Expand description

Diffie-Hellman key exchange.

Required Associated Types§

Required Methods§

Derives SharedSecretKey from the other PublicKey

Implementors§