pub trait Sender: ObliviousPrfwhere
    Self: Sized,
{ fn init<C: AbstractChannel, RNG: CryptoRng + Rng>(
        channel: &mut C,
        rng: &mut RNG
    ) -> Result<Self, Error>; fn send<C: AbstractChannel, RNG: CryptoRng + Rng>(
        &mut self,
        channel: &mut C,
        m: usize,
        rng: &mut RNG
    ) -> Result<Vec<Self::Seed>, Error>; fn compute(&self, seed: Self::Seed, input: Self::Input) -> Self::Output; }
Expand description

Trait for an oblivious PRF sender.

Required Methods

Runs any one-time initialization.

Runs m OPRF instances as the sender, returning the OPRF seeds.

Computes the oblivious PRF on seed seed and input input.

Implementors