pub trait KeyExchange {
// Required methods
fn algorithm(&self) -> KeyExchangeAlgorithm;
fn public_key(&self) -> Vec<u8> ⓘ;
fn derive_keys(
&self,
peer_public_key: &[u8],
salt: &[u8],
) -> Result<SessionKeys, CryptoError>;
}Expand description
Behavior required to complete the handshake key agreement.