Update READMEs & add SECURITY.md (#78)

This commit is contained in:
Jean-Philippe Bossuat
2025-08-20 20:52:59 +02:00
committed by GitHub
parent 3b94ab047e
commit ccd94e36cc
256 changed files with 1982 additions and 31869 deletions

View File

@@ -71,7 +71,6 @@ where
sk_lwe: &LWESecret<DataSkLWE>,
source_xa: &mut Source,
source_xe: &mut Source,
sigma: f64,
scratch: &mut Scratch<B>,
) where
DataSkGLWE: DataRef,
@@ -100,7 +99,7 @@ where
self.keys.iter_mut().enumerate().for_each(|(i, ggsw)| {
pt.at_mut(0, 0)[0] = sk_ref.at(0, 0)[i];
ggsw.encrypt_sk(module, &pt, sk_glwe, source_xa, source_xe, sigma, scratch);
ggsw.encrypt_sk(module, &pt, sk_glwe, source_xa, source_xe, scratch);
});
}
}
@@ -157,7 +156,6 @@ impl<D: DataMut> BlindRotationKeyCompressed<D, CGGI> {
sk_lwe: &LWESecret<DataSkLWE>,
seed_xa: [u8; 32],
source_xe: &mut Source,
sigma: f64,
scratch: &mut Scratch<B>,
) where
DataSkGLWE: DataRef,
@@ -209,7 +207,6 @@ impl<D: DataMut> BlindRotationKeyCompressed<D, CGGI> {
sk_glwe,
source_xa.new_seed(),
source_xe,
sigma,
scratch,
);
});

View File

@@ -28,7 +28,6 @@ pub trait BlindRotationKeyEncryptSk<B: Backend> {
sk_lwe: &LWESecret<DataSkLWE>,
source_xa: &mut Source,
source_xe: &mut Source,
sigma: f64,
scratch: &mut Scratch<B>,
) where
DataSkGLWE: DataRef,

View File

@@ -127,7 +127,6 @@ where
&sk_lwe,
&mut source_xa,
&mut source_xe,
3.2,
scratch.borrow(),
);
@@ -139,14 +138,7 @@ where
pt_lwe.encode_i64(x, log_message_modulus + 1);
lwe.encrypt_sk(
module,
&pt_lwe,
&sk_lwe,
&mut source_xa,
&mut source_xe,
3.2,
);
lwe.encrypt_sk(module, &pt_lwe, &sk_lwe, &mut source_xa, &mut source_xe);
let f = |x: i64| -> i64 { 2 * x + 1 };