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

No masking, i.e. secrets are shared direction to the clerks.

Secure masking, using fresh randomness from the underlying operation system for each secret.

Fields of Full

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

Methods

impl LinearMaskingScheme
[src]

Derived property indicating whether or not this scheme results in masks being generated or not.

Trait Implementations

impl Clone for LinearMaskingScheme
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for LinearMaskingScheme
[src]

Formats the value using the given formatter.

impl Eq for LinearMaskingScheme
[src]

impl PartialEq for LinearMaskingScheme
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.