fixed standard binary cggi blind rotation & fixed GLWECiphertext::external_product_scratch_space returning too small values

This commit is contained in:
Jean-Philippe Bossuat
2025-07-08 13:37:35 +02:00
parent 992cb3fa37
commit f7c94cd84a
3 changed files with 50 additions and 33 deletions

View File

@@ -14,7 +14,7 @@ impl GLWECiphertext<Vec<u8>> {
digits: usize,
rank: usize,
) -> usize {
let res_dft: usize = FourierGLWECiphertext::bytes_of(module, basek, k_out, rank);
let res_dft: usize = FourierGLWECiphertext::bytes_of(module, basek, k_ggsw, rank);
let in_size: usize = k_in.div_ceil(basek).div_ceil(digits);
let out_size: usize = k_out.div_ceil(basek);
let ggsw_size: usize = k_ggsw.div_ceil(basek);