Trait ocelot::ot::RandomSender

source ·
pub trait RandomSender: Sender
where Self: Sized,
{ // Required method fn send_random<C: AbstractChannel, RNG: CryptoRng + Rng>( &mut self, channel: &mut C, m: usize, rng: &mut RNG ) -> Result<Vec<(Self::Msg, Self::Msg)>, Error>; }
Expand description

Trait for one-out-of-two random oblivious transfer from the sender’s point-of-view.

Required Methods§

source

fn send_random<C: AbstractChannel, RNG: CryptoRng + Rng>( &mut self, channel: &mut C, m: usize, rng: &mut RNG ) -> Result<Vec<(Self::Msg, Self::Msg)>, Error>

Random oblivious transfer send. Returns a vector of tuples containing the two random messages.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<OT: OtReceiver<Msg = Block> + Malicious> RandomSender for ocelot::ot::kos::Sender<OT>

source§

impl<OT: OtReceiver<Msg = Block> + Malicious> RandomSender for ocelot::ot::kos_delta::Sender<OT>

source§

impl<OT: OtReceiver<Msg = Block> + SemiHonest> RandomSender for ocelot::ot::alsz::Sender<OT>