Struct concrete::lwe_bsk::LWEBSK[][src]

pub struct LWEBSK {
    pub ciphertexts: FourierBootstrapKey<AlignedVec<Complex64>, u64>,
    pub variance: f64,
    pub dimension: usize,
    pub polynomial_size: usize,
    pub base_log: usize,
    pub level: usize,
}

Fields

ciphertexts: FourierBootstrapKey<AlignedVec<Complex64>, u64>variance: f64dimension: usizepolynomial_size: usizebase_log: usizelevel: usize

Implementations

Return the dimension of an LWE we can bootstrap with this key

Return the log2 of the polynomial size of the RLWE involved in the bootstrap

Build a lookup table af a function from two encoders

Argument
  • encoder_input - the encoder of the input (of the bootstrap)
  • encoder_output - the encoder of the output (of the bootstrap)
  • f - a function
Output
  • a slice of Torus containing the lookup table

Build a lookup table for the identity function from two encoders

Argument
  • encoder_input - the encoder of the input (of the bootstrap)
  • encoder_output - the encoder of the output (of the bootstrap)
Output
  • a slice of Torus containing the lookup table

Create a valid bootstrapping key

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

Create an empty bootstrapping key

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 LWEBSK

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.