diff --git a/tfhe/src/integer/ciphertext/compact_list.rs b/tfhe/src/integer/ciphertext/compact_list.rs index 5d076abb19..00d06f9489 100644 --- a/tfhe/src/integer/ciphertext/compact_list.rs +++ b/tfhe/src/integer/ciphertext/compact_list.rs @@ -1008,6 +1008,16 @@ impl IntegerProvenCompactCiphertextListConformanceParams { pub fn from_crs_and_parameters( value: CompactPublicKeyEncryptionParameters, crs_params: &CompactPkeCrs, + ) -> Self { + Self::from_public_key_encryption_parameters_and_crs_parameters( + value, + crs_params.public_params(), + ) + } + + pub fn from_public_key_encryption_parameters_and_crs_parameters( + value: CompactPublicKeyEncryptionParameters, + crs_params: &crate::zk::CompactPkePublicParams, ) -> Self { Self { encryption_lwe_dimension: value.encryption_lwe_dimension, @@ -1015,7 +1025,7 @@ impl IntegerProvenCompactCiphertextListConformanceParams { carry_modulus: value.carry_modulus, ciphertext_modulus: value.ciphertext_modulus, expansion_kind: value.expansion_kind, - max_elements_per_compact_list: crs_params.public_params().k, + max_elements_per_compact_list: crs_params.k, } } }