diff --git a/poulpy-core/src/layouts/glwe_secret_tensor.rs b/poulpy-core/src/layouts/glwe_secret_tensor.rs index 287eda8..b5eff84 100644 --- a/poulpy-core/src/layouts/glwe_secret_tensor.rs +++ b/poulpy-core/src/layouts/glwe_secret_tensor.rs @@ -178,8 +178,6 @@ where let res: &mut GLWESecret<&mut [u8]> = &mut res.to_mut(); let a: &GLWESecret<&[u8]> = &a.to_ref(); - println!("res.rank: {} a.rank: {}", res.rank(), a.rank()); - assert_eq!(res.rank(), GLWESecretTensor::pairs(a.rank().into()) as u32); assert_eq!(res.n(), self.n() as u32); assert_eq!(a.n(), self.n() as u32); diff --git a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs index 549c9e0..b708047 100644 --- a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs +++ b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block.rs @@ -19,6 +19,12 @@ pub struct FheUintBlocks { pub(crate) _phantom: PhantomData, } +impl FheUintBlocks { + pub fn blocks(&self) -> &Vec> { + &self.blocks + } +} + impl LWEInfos for FheUintBlocks { fn base2k(&self) -> poulpy_core::layouts::Base2K { self.blocks[0].base2k() 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 2814773..bd8506e 100644 --- a/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs +++ b/poulpy-schemes/src/tfhe/bdd_arithmetic/ciphertexts/block_prepared.rs @@ -24,6 +24,12 @@ pub struct FheUintBlocksPrepared { pub(crate) _phantom: PhantomData, } +impl FheUintBlocksPrepared { + pub fn blocks(&self) -> &Vec> { + &self.blocks + } +} + impl FheUintBlocksPreparedFactory for Module where Self: Sized + GGSWPreparedFactory {