Added glwe rank switch before glwe -> lwe

This commit is contained in:
Pro7ech
2025-11-19 10:15:30 +01:00
parent c23cf7803b
commit 43fc5119f4
10 changed files with 181 additions and 60 deletions

View File

@@ -52,8 +52,8 @@ where
{
let (mut pt_have, scratch_1) = scratch.take_glwe_plaintext(res);
self.glwe_decrypt(res, &mut pt_have, sk_prepared, scratch_1);
//println!("pt_have: {pt_have}");
//println!("pt_want: {}", pt_want.to_ref());
// println!("pt_have: {pt_have}");
// println!("pt_want: {}", pt_want.to_ref());
self.glwe_sub_inplace(&mut pt_have, pt_want);
self.glwe_normalize_inplace(&mut pt_have, scratch_1);
pt_have.data.stats(pt_have.base2k().into(), 0)