Trait cryptraits::key_exchange::DiffieHellman
source · pub trait DiffieHellman: Zeroize {
type SSK: SharedSecretKey;
type PK: PublicKey;
// Required method
fn diffie_hellman(&self, peer_public: &Self::PK) -> Self::SSK;
}
Expand description
Diffie-Hellman key exchange.
Required Associated Types§
Required Methods§
sourcefn diffie_hellman(&self, peer_public: &Self::PK) -> Self::SSK
fn diffie_hellman(&self, peer_public: &Self::PK) -> Self::SSK
Derives SharedSecretKey
from the other PublicKey