Trait seec::protocols::Sharing

source ·
pub trait Sharing {
    type Plain: Clone + Default + Debug;
    type Shared: ShareStorage<Self::Plain>;

    // Required methods
    fn share(&mut self, input: Self::Shared) -> [Self::Shared; 2];
    fn reconstruct(shares: [Self::Shared; 2]) -> Self::Shared;
}

Required Associated Types§

Required Methods§

source

fn share(&mut self, input: Self::Shared) -> [Self::Shared; 2]

source

fn reconstruct(shares: [Self::Shared; 2]) -> Self::Shared

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B, A, R> Sharing for MixedSharing<B, A, R>
where B: Sharing<Plain = bool, Shared = BitVec<usize>>, R: Ring, A: Sharing<Plain = R, Shared = Vec<R>>,

source§

impl<R: CryptoRng + Rng> Sharing for XorSharing<R>

§

type Plain = bool

§

type Shared = BitVec

source§

impl<RING, RNG> Sharing for AdditiveSharing<RING, RNG>
where RING: Ring, RNG: CryptoRng + Rng, Standard: Distribution<RING>,

§

type Plain = RING

§

type Shared = Vec<RING>