working block binary BR

This commit is contained in:
Jean-Philippe Bossuat
2025-06-18 22:23:32 +02:00
parent 829b8be610
commit 6a006b442a
3 changed files with 53 additions and 26 deletions

View File

@@ -11,7 +11,7 @@ pub struct LWECiphertext<D> {
impl LWECiphertext<Vec<u8>> {
pub fn alloc(n: usize, basek: usize, k: usize) -> Self {
Self {
data: VecZnx::new::<i64>(n, 1, k.div_ceil(basek)),
data: VecZnx::new::<i64>(n+1, 1, k.div_ceil(basek)),
k: k,
basek: basek,
}