pub struct DynShortIntParameters {
Show 16 fields pub lwe_dimension: LweDimension, pub glwe_dimension: GlweDimension, pub polynomial_size: PolynomialSize, pub lwe_modular_std_dev: StandardDev, pub glwe_modular_std_dev: StandardDev, pub pbs_base_log: DecompositionBaseLog, pub pbs_level: DecompositionLevelCount, pub ks_base_log: DecompositionBaseLog, pub ks_level: DecompositionLevelCount, pub pfks_level: DecompositionLevelCount, pub pfks_base_log: DecompositionBaseLog, pub pfks_modular_std_dev: StandardDev, pub cbs_level: DecompositionLevelCount, pub cbs_base_log: DecompositionBaseLog, pub message_modulus: MessageModulus, pub carry_modulus: CarryModulus,
}
Available on crate feature shortints only.
Expand description

A structure defining the set of cryptographic parameters for homomorphic integer circuit evaluation.

Fields

lwe_dimension: LweDimensionglwe_dimension: GlweDimensionpolynomial_size: PolynomialSizelwe_modular_std_dev: StandardDevglwe_modular_std_dev: StandardDevpbs_base_log: DecompositionBaseLogpbs_level: DecompositionLevelCountks_base_log: DecompositionBaseLogks_level: DecompositionLevelCountpfks_level: DecompositionLevelCountpfks_base_log: DecompositionBaseLogpfks_modular_std_dev: StandardDevcbs_level: DecompositionLevelCountcbs_base_log: DecompositionBaseLogmessage_modulus: MessageModuluscarry_modulus: CarryModulus

Implementations

Constructs a new set of parameters for integer circuit evaluation.

Safety

This function is unsafe, as failing to fix the parameters properly would yield incorrect and unsecure computation. Unless you are a cryptographer who really knows the impact of each of those parameters, you must stick with the provided parameters.

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

Returns the “default value” for a type. Read more

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 !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

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

Uses borrowed data to replace owned data, usually by cloning. 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.