@@ -65,7 +65,7 @@ impl ClientKey {
65
65
params. packing_ks_base_log ,
66
66
params. packing_ks_level ,
67
67
params. packing_ks_key_noise_distribution ,
68
- self . parameters . ciphertext_modulus ( ) ,
68
+ params . ciphertext_modulus_after_packing_ks ,
69
69
& mut engine. encryption_generator ,
70
70
)
71
71
} ) ;
@@ -120,6 +120,7 @@ pub struct CompressionConformanceParameters {
120
120
pub storage_log_modulus : CiphertextModulusLog ,
121
121
pub uncompressed_polynomial_size : PolynomialSize ,
122
122
pub uncompressed_glwe_dimension : GlweDimension ,
123
+ pub ciphertext_modulus_after_packing_ks : CiphertextModulus < u64 > ,
123
124
pub cipherext_modulus : CiphertextModulus < u64 > ,
124
125
}
125
126
@@ -137,6 +138,8 @@ impl From<(PBSParameters, CompressionParameters)> for CompressionConformancePara
137
138
uncompressed_polynomial_size : pbs_params. polynomial_size ( ) ,
138
139
uncompressed_glwe_dimension : pbs_params. glwe_dimension ( ) ,
139
140
cipherext_modulus : pbs_params. ciphertext_modulus ( ) ,
141
+ ciphertext_modulus_after_packing_ks : compression_params
142
+ . ciphertext_modulus_after_packing_ks ,
140
143
}
141
144
}
142
145
}
@@ -159,7 +162,7 @@ impl ParameterSetConformant for CompressionKey {
159
162
. to_equivalent_lwe_dimension ( parameter_set. uncompressed_polynomial_size ) ,
160
163
output_glwe_size : parameter_set. packing_ks_glwe_dimension . to_glwe_size ( ) ,
161
164
output_polynomial_size : parameter_set. packing_ks_polynomial_size ,
162
- ciphertext_modulus : parameter_set. cipherext_modulus ,
165
+ ciphertext_modulus : parameter_set. ciphertext_modulus_after_packing_ks ,
163
166
} ;
164
167
165
168
packing_key_switching_key. is_conformant ( & params)
0 commit comments