Struct concrete::DynShortIntParameters
source · [−]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,
}
shortints
only.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
sourceimpl 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
sourceimpl Clone for Parameters
impl Clone for Parameters
sourcefn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Parameters
impl Debug for Parameters
sourceimpl Default for Parameters
impl Default for Parameters
sourcefn default() -> Parameters
fn default() -> Parameters
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Parameters
impl<'de> Deserialize<'de> for Parameters
sourcefn 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
sourceimpl PartialEq<Parameters> for Parameters
impl PartialEq<Parameters> for Parameters
sourcefn eq(&self, other: &Parameters) -> bool
fn eq(&self, other: &Parameters) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Parameters) -> bool
fn ne(&self, other: &Parameters) -> bool
This method tests for !=
.
sourceimpl Serialize for Parameters
impl Serialize for Parameters
sourcefn 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 RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more