From a2aecfd38016d59eadd1eeec030d653059dd95ff Mon Sep 17 00:00:00 2001 From: Pro7ech Date: Tue, 28 Oct 2025 11:24:22 +0100 Subject: [PATCH] Make FheUintBlocksPrepared allocation & encryption public --- .../src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs index bd8506e..a232dc2 100644 --- a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs +++ b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs @@ -93,8 +93,7 @@ where } impl FheUintBlocksPrepared, T, BE> { - #[allow(dead_code)] - pub(crate) fn alloc(module: &M, infos: &A) -> Self + pub fn alloc(module: &M, infos: &A) -> Self where A: GGSWInfos, M: FheUintBlocksPreparedFactory, @@ -102,8 +101,7 @@ impl FheUintBlocksPrepared, T, BE> { module.alloc_fhe_uint_blocks_prepared_from_infos(infos) } - #[allow(dead_code)] - pub(crate) fn alloc_with(module: &M, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank) -> Self + pub fn alloc_with(module: &M, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank) -> Self where M: FheUintBlocksPreparedFactory, { @@ -153,7 +151,7 @@ where } impl FheUintBlocksPrepared { - pub(crate) fn encrypt_sk( + pub fn encrypt_sk( &mut self, module: &M, value: T,