pub trait ActiveKeyExchange: Send {
// Required methods
fn algorithm(&self) -> KeyExchangeAlgorithm;
fn public_key(&self) -> &[u8] ⓘ;
fn complete(
self: Box<Self>,
peer_public_key: &[u8],
) -> Result<SecretVec, CryptoError>;
}Expand description
Provider-owned one-shot ephemeral key exchange.
Required Methods§
Sourcefn algorithm(&self) -> KeyExchangeAlgorithm
fn algorithm(&self) -> KeyExchangeAlgorithm
Returns the key-exchange algorithm.
Sourcefn public_key(&self) -> &[u8] ⓘ
fn public_key(&self) -> &[u8] ⓘ
Returns the encoded wire public key.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".