arnaucube
arnaucube/poulpyPublic Self-hosted repository
Make FheUintBlocksPrepared allocation & encryption public
Pro7ech jeanphilippe.bossuat@gmail.com
Tue, 28 Oct 2025 11:24:22 +0100
commit

a2aecfd38016d59eadd1eeec030d653059dd95ff

parent

ade160846578cce3f235958806d07fc3f86c3db3

1 files changed, 3 insertions(+), 5 deletions(-)

jump to
M poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs → poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs

@@ -93,8 +93,7 @@ }

} impl<T: UnsignedInteger, BE: Backend> FheUintBlocksPrepared<Vec<u8>, T, BE> { - #[allow(dead_code)] - pub(crate) fn alloc<A, M>(module: &M, infos: &A) -> Self + pub fn alloc<A, M>(module: &M, infos: &A) -> Self where A: GGSWInfos, M: FheUintBlocksPreparedFactory<T, BE>,

@@ -102,8 +101,7 @@ {

module.alloc_fhe_uint_blocks_prepared_from_infos(infos) } - #[allow(dead_code)] - pub(crate) fn alloc_with<M>(module: &M, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank) -> Self + pub fn alloc_with<M>(module: &M, base2k: Base2K, k: TorusPrecision, dnum: Dnum, dsize: Dsize, rank: Rank) -> Self where M: FheUintBlocksPreparedFactory<T, BE>, {

@@ -153,7 +151,7 @@ }

} impl<D: DataMut, T: UnsignedInteger + ToBits, BE: Backend> FheUintBlocksPrepared<D, T, BE> { - pub(crate) fn encrypt_sk<M, S>( + pub fn encrypt_sk<M, S>( &mut self, module: &M, value: T,