pub struct Parameters {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,
}
Expand description
A structure defining the set of cryptographic parameters for homomorphic integer circuit evaluation.
Fields§
§lwe_dimension: LweDimension
§glwe_dimension: GlweDimension
§polynomial_size: PolynomialSize
§lwe_modular_std_dev: StandardDev
§glwe_modular_std_dev: StandardDev
§pbs_base_log: DecompositionBaseLog
§pbs_level: DecompositionLevelCount
§ks_base_log: DecompositionBaseLog
§ks_level: DecompositionLevelCount
§pfks_level: DecompositionLevelCount
§pfks_base_log: DecompositionBaseLog
§pfks_modular_std_dev: StandardDev
§cbs_level: DecompositionLevelCount
§cbs_base_log: DecompositionBaseLog
§message_modulus: MessageModulus
§carry_modulus: CarryModulus
Implementations§
Source§impl Parameters
impl Parameters
Sourcepub unsafe fn new_unsecure(
lwe_dimension: LweDimension,
glwe_dimension: GlweDimension,
polynomial_size: PolynomialSize,
lwe_modular_std_dev: StandardDev,
glwe_modular_std_dev: StandardDev,
pbs_base_log: DecompositionBaseLog,
pbs_level: DecompositionLevelCount,
ks_base_log: DecompositionBaseLog,
ks_level: DecompositionLevelCount,
pfks_level: DecompositionLevelCount,
pfks_base_log: DecompositionBaseLog,
pfks_modular_std_dev: StandardDev,
cbs_level: DecompositionLevelCount,
cbs_base_log: DecompositionBaseLog,
message_modulus: MessageModulus,
carry_modulus: CarryModulus,
) -> Parameters
pub unsafe fn new_unsecure( lwe_dimension: LweDimension, glwe_dimension: GlweDimension, polynomial_size: PolynomialSize, lwe_modular_std_dev: StandardDev, glwe_modular_std_dev: StandardDev, pbs_base_log: DecompositionBaseLog, pbs_level: DecompositionLevelCount, ks_base_log: DecompositionBaseLog, ks_level: DecompositionLevelCount, pfks_level: DecompositionLevelCount, pfks_base_log: DecompositionBaseLog, pfks_modular_std_dev: StandardDev, cbs_level: DecompositionLevelCount, cbs_base_log: DecompositionBaseLog, message_modulus: MessageModulus, carry_modulus: CarryModulus, ) -> Parameters
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§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Parameters
impl Debug for Parameters
Source§impl Default for Parameters
impl Default for Parameters
Source§fn default() -> Parameters
fn default() -> Parameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Parameters
impl<'de> Deserialize<'de> for Parameters
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Parameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Parameters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Parameters
impl PartialEq for Parameters
Source§impl Serialize for Parameters
impl Serialize for Parameters
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more