pub trait PRF {
    type Seed;
    type Input;
    type Output;

    fn prf(
        &self,
        seed: &Self::Seed,
        input: &[Self::Input]
    ) -> Result<Self::Output, Error>; }
Expand description

A trait for a pseudorandom function.

Required Associated Types§

Required Methods§

source

fn prf(
    &self,
    seed: &Self::Seed,
    input: &[Self::Input]
) -> Result<Self::Output, Error>

Returns the output for the given seed and input.

Implementors§