mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
fixed cbt tests
This commit is contained in:
@@ -99,6 +99,7 @@ where
|
||||
let (mut sk_out_prepared, scratch_1) = scratch.take_glwe_secret_prepared(self, sk.rank());
|
||||
{
|
||||
let (mut sk_out, _) = scratch_1.take_glwe_secret(self.n().into(), sk.rank());
|
||||
sk_out.dist = sk.dist;
|
||||
for i in 0..sk.rank().into() {
|
||||
self.vec_znx_automorphism(
|
||||
self.galois_element_inv(p),
|
||||
|
||||
@@ -121,6 +121,8 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
sk_out_tmp.dist = sk_out.dist;
|
||||
|
||||
self.gglwe_compressed_encrypt_sk(res, &sk_in_tmp, &sk_out_tmp, seed_xa, source_xe, scratch_2);
|
||||
|
||||
*res.input_degree() = sk_in.n();
|
||||
|
||||
Reference in New Issue
Block a user