pub trait FromKeyExchange<Lhs: ?Sized, Rhs: ?Sized>: Sized {
// Required method
fn from_key_exchange(lhs: &Lhs, rhs: &Rhs) -> Result<Self, Error>;
}Expand description
Trait for instantiation from a key exchange
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<Lhs, Rhs, T> FromKeyExchange<Lhs, Rhs> for AesKey<T>
Available on crate feature
aes only.impl<Lhs, Rhs, T> FromKeyExchange<Lhs, Rhs> for Chacha20Key<T>
Available on crate feature
chacha only.