pub struct BooleanParameters {
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,
}Expand description
A set of cryptographic parameters for homomorphic Boolean 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: DecompositionLevelCountImplementations§
Source§impl BooleanParameters
impl BooleanParameters
Sourcepub unsafe fn new_insecure(
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,
) -> BooleanParameters
pub unsafe fn new_insecure( 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, ) -> BooleanParameters
Constructs a new set of parameters for boolean circuit evaluation.
§Safety
This function is unsafe, as failing to fix the parameters properly would yield incorrect
and insecure computation. Unless you are a cryptographer who really knows the impact of each
of those parameters, you must stick with the provided parameters DEFAULT_PARAMETERS
and TFHE_LIB_PARAMETERS, which both offer correct results with 128 bits of security.
Trait Implementations§
Source§impl Clone for BooleanParameters
impl Clone for BooleanParameters
Source§fn clone(&self) -> BooleanParameters
fn clone(&self) -> BooleanParameters
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 BooleanParameters
impl Debug for BooleanParameters
Source§impl<'de> Deserialize<'de> for BooleanParameters
impl<'de> Deserialize<'de> for BooleanParameters
Source§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
Source§impl PartialEq for BooleanParameters
impl PartialEq for BooleanParameters
Source§impl Serialize for BooleanParameters
impl Serialize for BooleanParameters
impl Copy for BooleanParameters
impl StructuralPartialEq for BooleanParameters
Auto Trait Implementations§
impl Freeze for BooleanParameters
impl RefUnwindSafe for BooleanParameters
impl Send for BooleanParameters
impl Sync for BooleanParameters
impl Unpin for BooleanParameters
impl UnwindSafe for BooleanParameters
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