pub trait Sender: ObliviousPrfwhere
Self: Sized,{
// Required methods
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§
sourcefn init<C: AbstractChannel, RNG: CryptoRng + Rng>(
channel: &mut C,
rng: &mut RNG
) -> Result<Self, Error>
fn init<C: AbstractChannel, RNG: CryptoRng + Rng>( channel: &mut C, rng: &mut RNG ) -> Result<Self, Error>
Runs any one-time initialization.
Object Safety§
This trait is not object safe.