prototype of borrowing tmp structs & working gadget product with stacked rows

This commit is contained in:
Jean-Philippe Bossuat
2025-02-14 20:51:49 +01:00
parent e7a6ba17ee
commit fdc2f3ac42
11 changed files with 400 additions and 182 deletions

View File

@@ -1,4 +1,4 @@
use base2k::{Encoding, FFT64, SvpPPolOps};
use base2k::{Encoding, FFT64, SvpPPolOps, VecZnxApi, VecZnx};
use rlwe::{
ciphertext::Ciphertext,
decryptor::{Decryptor, decrypt_rlwe_thread_safe_tmp_byte},
@@ -37,7 +37,7 @@ fn main() {
want.iter_mut().enumerate().for_each(|(i, x)| *x = i as i64);
let mut pt: Plaintext = params.new_plaintext(params.log_q());
let mut pt: Plaintext<VecZnx> = params.new_plaintext(params.log_q());
let log_base2k = pt.log_base2k();