PrfSecret

Trait PrfSecret 

Source
pub trait PrfSecret: Send + Sync {
    // Required method
    fn prf(&self, output: &mut [u8], label: &[u8], seed: &[u8]);
}
Expand description

An instantiation of the TLS1.2 PRF with a fixed hash function and master secret.

Required Methods§

Source

fn prf(&self, output: &mut [u8], label: &[u8], seed: &[u8])

Computes PRF(secret, label, seed), writing the result into output.

secret is implicit in this object; see Prf::new_secret.

The caller guarantees that label and seed are non-empty.

Implementors§