Added tests for GRLWE x RGSW

This commit is contained in:
Jean-Philippe Bossuat
2025-05-12 09:27:04 +02:00
parent 73098af73a
commit e38ca404f9
3 changed files with 461 additions and 6 deletions

View File

@@ -231,7 +231,7 @@ where
let min_rows: usize = res.rows().min(a.rows());
(0..res.rows()).for_each(|row_i| {
(0..self.cols()).for_each(|col_j| {
(0..res.cols()).for_each(|col_j| {
a.get_row(module, row_i, col_j, &mut tmp_row);
self.mul_rlwe_dft_inplace(module, &mut tmp_row, scratch1);
res.set_row(module, row_i, col_j, &tmp_row);
@@ -260,7 +260,7 @@ where
};
(0..res.rows()).for_each(|row_i| {
(0..self.cols()).for_each(|col_j| {
(0..res.cols()).for_each(|col_j| {
res.get_row(module, row_i, col_j, &mut tmp_row);
self.mul_rlwe_dft_inplace(module, &mut tmp_row, scratch1);
res.set_row(module, row_i, col_j, &tmp_row);