Struct concrete::rlwe_params::RLWEParams [−][src]
Expand description
Structure describing the security parameters for encryption with RLWE ciphertexts
Attributes
polynomial_size
: the number of coefficients in a polynomialdimension
: the size of an RLWE masklog2_std_dev
: the log2 of the standard deviation used for the error normal distribution
Fields
polynomial_size: usize
dimension: usize
log2_std_dev: i32
Implementations
pub fn new(
polynomial_size: usize,
dimension: usize,
log2_std_dev: i32
) -> Result<RLWEParams, CryptoAPIError>
pub fn new(
polynomial_size: usize,
dimension: usize,
log2_std_dev: i32
) -> Result<RLWEParams, CryptoAPIError>
Instantiate a new RLWEParams with the provided dimension and standard deviation
Arguments
polynomial_size
- the number of coefficients in a polynomialdimension
- the size of an RLWE maskstd_dev
- the standard deviation used for the error normal distribution
Output
- a new instantiation of an RLWEParams
- NotPowerOfTwoError if
polynomial_size
is not a power of 2
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RLWEParams
impl Send for RLWEParams
impl Sync for RLWEParams
impl Unpin for RLWEParams
impl UnwindSafe for RLWEParams
Blanket Implementations
Mutably borrows from an owned value. Read more