arnaucube
arnaucube/poulpyPublic Self-hosted repository
Add bddkey encrypt sk tmp_bytes
Pro7ech jeanphilippe.bossuat@gmail.com
Fri, 14 Nov 2025 16:47:14 +0100
commit

1ad54f53a8a3260e38645a6d2f5b664508645138

parent

efdadb9592deff8a51e1b17e7a156ccac07b09ab

1 files changed, 12 insertions(+), 0 deletions(-)

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

@@ -68,6 +68,10 @@ }

} pub trait BDDKeyEncryptSk<BRA: BlindRotationAlgo, BE: Backend> { + fn bdd_key_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize + where + A: BDDKeyInfos; + fn bdd_key_encrypt_sk<D, S0, S1>( &self, res: &mut BDDKey<D, BRA>,

@@ -87,6 +91,14 @@ where

Self: CircuitBootstrappingKeyEncryptSk<BRA, BE> + GLWEToLWESwitchingKeyEncryptSk<BE>, Scratch<BE>: ScratchTakeCore<BE>, { + fn bdd_key_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize + where + A: BDDKeyInfos, + { + self.circuit_bootstrapping_key_encrypt_sk_tmp_bytes(&infos.cbt_infos()) + .max(self.glwe_to_lwe_key_encrypt_sk_tmp_bytes(&infos.ks_infos())) + } + fn bdd_key_encrypt_sk<D, S0, S1>( &self, res: &mut BDDKey<D, BRA>,