pub trait FixedKeyInitializer
where Self: Sized,
{ // Required method fn init_fixed_key<C: AbstractChannel, RNG: CryptoRng + Rng>( channel: &mut C, s_: [u8; 16], rng: &mut RNG ) -> Result<Self, Error>; }
Expand description

Trait for initializing an oblivious transfer object with a fixed key.

Required Methods§

source

fn init_fixed_key<C: AbstractChannel, RNG: CryptoRng + Rng>( channel: &mut C, s_: [u8; 16], rng: &mut RNG ) -> Result<Self, Error>

Runs any one-time initialization to create the oblivious transfer object with a fixed key.

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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

source§

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