Function key_agreement
pub fn key_agreement(
private_key: &PrivateKey,
public_key: &PublicKey,
) -> Result<SharedKey, UnknownCryptoError> ⓘ
Available on crate feature
dep_orion
only.Expand description
X25519 (Diffie-Hellman with Montgomery form of Curve25519).