Skip to main content

prf

Function prf 

Source
pub fn prf(eta: usize, s: &[u8; 32], b: u8, out: &mut [u8])
Expand description

PRF_eta(s, b) — SHAKE-256 pseudo-random function producing 64 * eta bytes.

Used in FIPS 203 to generate the random bytes consumed by super::sample::sample_poly_cbd for secret and error polynomial sampling.