Fix seeded glwe encryption

This commit is contained in:
Pro7ech
2025-11-18 23:57:24 +01:00
parent 2fb1627613
commit 59a1b6616a
11 changed files with 117 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
use poulpy_hal::{
api::VecZnxAddScalarInplace,
layouts::{Backend, DataRef, Module, ScalarZnxToRef, Scratch, Stats, ZnxInfos, ZnxZero},
layouts::{Backend, DataRef, Module, ScalarZnxToRef, Scratch, Stats, ZnxZero},
};
use crate::{
@@ -78,7 +78,6 @@ where
let dsize: usize = res.dsize().into();
let (mut pt, scratch_1) = scratch.take_glwe_plaintext(res);
pt.data_mut().zero();
println!("col: {res_col} {}", pt_want.to_ref().cols());
self.vec_znx_add_scalar_inplace(
&mut pt.data,
0,