Struct concrete::rlwe_secret_key::RLWESecretKey[][src]

pub struct RLWESecretKey {
    pub val: GlweSecretKey<BinaryKeyKind, Vec<u64>>,
    pub polynomial_size: usize,
    pub dimension: usize,
    pub std_dev: f64,
}

Fields

val: GlweSecretKey<BinaryKeyKind, Vec<u64>>polynomial_size: usizedimension: usizestd_dev: f64

Implementations

Generate a new secret key from an RLWEParams

Argument
  • params - an RLWEParams instance
Output
  • a new RLWESecretKey

Generate a new secret key from a raw dimension (i.e. without a RLWEParams input)

Argument
  • polynomial_size - the size of the polynomial
  • dimension - the length the LWE mask
Output
  • a new RLWESecretKey

Convert an RLWE secret key into an LWE secret key

Output
  • an LWE secret key

Return the variance of the error distribution associated with the secret key

Output
  • the variance

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.