Trait tor_proto::circuit::handshake::KeyGenerator

source ·
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.

Required Methods§

source

fn expand(self, keylen: usize) -> Result<SecretBuf>

Consume the key

Implementors§