-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(shortint): update compression parameters
- Loading branch information
1 parent
71fb6c5
commit 3667154
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::core_crypto::prelude::{CiphertextModulusLog, LweCiphertextCount}; | ||
use crate::shortint::parameters::{ | ||
CompressionParameters, DecompositionBaseLog, DecompositionLevelCount, DynamicDistribution, | ||
GlweDimension, PolynomialSize, | ||
}; | ||
|
||
pub const V0_10_COMP_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64: CompressionParameters = | ||
CompressionParameters { | ||
br_level: DecompositionLevelCount(1), | ||
br_base_log: DecompositionBaseLog(23), | ||
packing_ks_level: DecompositionLevelCount(4), | ||
packing_ks_base_log: DecompositionBaseLog(4), | ||
packing_ks_polynomial_size: PolynomialSize(256), | ||
packing_ks_glwe_dimension: GlweDimension(4), | ||
lwe_per_glwe: LweCiphertextCount(256), | ||
storage_log_modulus: CiphertextModulusLog(12), | ||
packing_ks_key_noise_distribution: DynamicDistribution::new_t_uniform(42), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters