Updated packing to clean values correctly

This commit is contained in:
Pro7ech
2025-10-30 15:58:30 +01:00
parent a6970669dd
commit 3cd79e5a90
19 changed files with 127 additions and 93 deletions

View File

@@ -378,16 +378,6 @@ fn post_process<R, A, M, H, K, BE: Backend>(
cts.insert(i * (1 << log_gap_out), ct);
}
module.glwe_pack(&mut cts, log_gap_out, auto_keys, scratch);
let packed: &mut GLWE<Vec<u8>> = cts.remove(&0).unwrap();
res.trace(
module,
log_n - log_gap_out,
log_n,
packed,
auto_keys,
scratch,
);
module.glwe_pack(res, cts, log_gap_out, auto_keys, scratch);
}
}