mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
Fix compressed encryptions & add GGSW compressed encryption (#67)
* Added decompress test * updated encryption sampling & fixed bug in glwe -> lwe test * Added GGSW compressed encryption
This commit is contained in:
committed by
GitHub
parent
9aa4b1f1e2
commit
068470783e
@@ -192,6 +192,7 @@ impl<D: DataMut> GGLWECiphertextCompressed<D> {
|
||||
let basek: usize = self.basek();
|
||||
let k: usize = self.k();
|
||||
let rank_in: usize = self.rank_in();
|
||||
let cols: usize = self.rank_out() + 1;
|
||||
|
||||
let mut source_xa = Source::new(seed);
|
||||
|
||||
@@ -217,6 +218,7 @@ impl<D: DataMut> GGLWECiphertextCompressed<D> {
|
||||
self.basek(),
|
||||
self.k(),
|
||||
&mut self.at_mut(row_i, col_i).data,
|
||||
cols,
|
||||
true,
|
||||
Some((&tmp_pt, 0)),
|
||||
sk,
|
||||
|
||||
Reference in New Issue
Block a user