* fix #131

* fix #130

* update CHANGELOG.md
This commit is contained in:
Jean-Philippe Bossuat
2026-01-16 18:14:07 +01:00
committed by GitHub
parent 2cf0b1cf82
commit 2559d8ea81
7 changed files with 49 additions and 42 deletions

View File

@@ -11,7 +11,7 @@ impl<D: DataRef> GLWE<D> {
where
M: GLWENoise<BE>,
P: GLWEToRef,
S: GLWESecretPreparedToRef<BE>,
S: GLWESecretPreparedToRef<BE> + GLWEInfos,
{
module.glwe_noise(self, pt_want, sk_prepared, scratch)
}
@@ -26,7 +26,7 @@ pub trait GLWENoise<BE: Backend> {
where
R: GLWEToRef + GLWEInfos,
P: GLWEToRef,
S: GLWESecretPreparedToRef<BE>;
S: GLWESecretPreparedToRef<BE> + GLWEInfos;
}
impl<BE: Backend> GLWENoise<BE> for Module<BE>
@@ -45,7 +45,7 @@ where
where
R: GLWEToRef + GLWEInfos,
P: GLWEToRef,
S: GLWESecretPreparedToRef<BE>,
S: GLWESecretPreparedToRef<BE> + GLWEInfos,
{
let (mut pt_have, scratch_1) = scratch.take_glwe_plaintext(res);
self.glwe_decrypt(res, &mut pt_have, sk_prepared, scratch_1);