pub trait KeyGenerator {
// Required method
fn expand(self, keylen: usize) -> Result<SecretBuf>;
}
Available on crate feature
hs-common
only.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.