Enum sda_protocol::LinearMaskingScheme
[−]
[src]
pub enum LinearMaskingScheme { None, Full { modulus: i64, }, ChaCha { modulus: i64, dimension: usize, seed_bitsize: usize, }, }
Supported masking schemes and their parameters.
Variants
None
No masking, i.e. secrets are shared direction to the clerks.
Full
Secure masking, using fresh randomness from the underlying operation system for each secret.
Fields of Full
modulus: i64 |
ChaCha
Secure masking, using a small random seed to derive masks (rand::chacha::ChaChaRng
).
Compared to LinearMaskingScheme::Full
this reduces the amount of mask data to be uploaded
and downloaded by respectively participants and recipients. On the other hand, more computation
has to be performed since seeds must be expanded on both participant and recipient side.
Fields of ChaCha
modulus: i64 | |
dimension: usize | |
seed_bitsize: usize |
Methods
impl LinearMaskingScheme
[src]
fn has_mask(&self) -> bool
Derived property indicating whether or not this scheme results in masks being generated or not.
Trait Implementations
impl Clone for LinearMaskingScheme
[src]
fn clone(&self) -> LinearMaskingScheme
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for LinearMaskingScheme
[src]
impl Eq for LinearMaskingScheme
[src]
impl PartialEq for LinearMaskingScheme
[src]
fn eq(&self, __arg_0: &LinearMaskingScheme) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LinearMaskingScheme) -> bool
This method tests for !=
.