pub trait KeyGenerator {
// Required method
fn expand(self, keylen: usize) -> Result<SecretBuf>;
}Expand description
A KeyGenerator is returned by a handshake, and used to generate session keys for the protocol.
Typically, it wraps a KDF function, and some seed key material.
It can only be used once.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".