Trait fss_rs::Prg

source ·
pub trait Prg<const BLEN: usize, const BLEN_N: usize>: Sync {
    // Required method
    fn gen(&self, seed: &[u8; BLEN]) -> [([[u8; BLEN]; BLEN_N], bool); 2];
}
Expand description

Pseudorandom generator (PRG).

Requires Sync for multi-threading. We still require it for single-threading since it should be still easy to be included.

Required Methods§

source

fn gen(&self, seed: &[u8; BLEN]) -> [([[u8; BLEN]; BLEN_N], bool); 2]

Implementors§

source§

impl<const OUT_BLEN: usize, const OUT_BLEN_N: usize, const CIPHER_N: usize> Prg<OUT_BLEN, OUT_BLEN_N> for Aes128MatyasMeyerOseasPrg<OUT_BLEN, OUT_BLEN_N, CIPHER_N>

source§

impl<const OUT_BLEN: usize, const OUT_BLEN_N: usize, const CIPHER_N: usize> Prg<OUT_BLEN, OUT_BLEN_N> for Aes256HirosePrg<OUT_BLEN, OUT_BLEN_N, CIPHER_N>