Struct concrete::lwe_ksk::LWEKSK[][src]

pub struct LWEKSK {
    pub ciphertexts: LweKeyswitchKey<Vec<Torus>>,
    pub base_log: usize,
    pub level: usize,
    pub dimension_before: usize,
    pub dimension_after: usize,
    pub variance: f64,
}

Fields

ciphertexts: LweKeyswitchKey<Vec<Torus>>base_log: usizelevel: usizedimension_before: usizedimension_after: usizevariance: f64

Implementations

Generate an empty LWE key switching key

Argument
  • sk_before - an LWE secret key (input for the key switch)
  • sk_after - an LWE secret key (output for the key switch)
  • base_log - the log2 of the decomposition base
  • level - the number of levels of the decomposition
Output
  • an LWEKSK

Generate a valid LWE key switching key

Argument
  • sk_before - an LWE secret key (input for the key switch)
  • sk_after - an LWE secret key (output for the key switch)
  • base_log - the log2 of the decomposition base
  • level - the number of levels of the decomposition
Output
  • an LWEKSK

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Print needed pieces of information about an LWEKSK

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.