[][src]Trait sharing::Sharing

pub trait Sharing {
    type Share: Share;
    fn share(&self, data: Vec<u8>) -> Option<Vec<Self::Share>>;
fn recontruct(&self, shares: Vec<Self::Share>) -> Option<Vec<u8>>; }

Associated Types

type Share: Share

Loading content...

Required methods

fn share(&self, data: Vec<u8>) -> Option<Vec<Self::Share>>

fn recontruct(&self, shares: Vec<Self::Share>) -> Option<Vec<u8>>

Loading content...

Implementors

impl Sharing for RabinInformationDispersal[src]

type Share = RabinShare

impl<R: Rng> Sharing for ShamirSecretSharing<R>[src]

type Share = ShamirShare

impl<R: Rng, C: StreamCipher + NewStreamCipher> Sharing for KrawczykSecretSharing<C, R>[src]

type Share = KrawczykShare

Loading content...