Added LWESecret

This commit is contained in:
Jean-Philippe Bossuat
2025-06-12 11:03:54 +02:00
parent d5dc9e6902
commit ec4253bb1c
4 changed files with 74 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
use backend::{Backend, FFT64, Module, ScalarZnx, ScalarZnxAlloc, ScalarZnxToRef, Scratch, ZnxView, ZnxViewMut};
use sampling::source::Source;
use crate::{AutomorphismKey, GGSWCiphertext, GLWESecret, SecretDistribution};
use crate::{AutomorphismKey, GGSWCiphertext, GLWESecret, LWESecret, SecretDistribution};
pub struct BlindRotationKeyCGGI<B: Backend> {
pub(crate) data: Vec<GGSWCiphertext<Vec<u8>, B>>,
@@ -27,7 +27,7 @@ impl BlindRotationKeyCGGI<FFT64> {
&mut self,
module: &Module<FFT64>,
sk_glwe: &GLWESecret<DataSkGLWE, FFT64>,
sk_lwe: &GLWESecret<DataSkLWE, FFT64>,
sk_lwe: &LWESecret<DataSkLWE>,
source_xa: &mut Source,
source_xe: &mut Source,
sigma: f64,