wip on gadget product

This commit is contained in:
Jean-Philippe Bossuat
2025-02-12 11:40:36 +01:00
parent c5da752536
commit dc2fab9a04
8 changed files with 102 additions and 56 deletions

View File

@@ -65,14 +65,19 @@ impl SwitchingKey {
SwitchingKey(GadgetCiphertext::new(module, log_base2k, rows, log_q))
}
pub fn gen_thread_safe(
&mut self,
params: &mut Parameters,
sk_in: &SvpPPol,
sk_out: &SvpPPol,
xa_source: &mut Source,
xe_source: &mut Source,
tmp_bytes: &mut [u8],
) {
pub fn n(&self) -> usize{
self.0.n()
}
pub fn rows(&self) -> usize{
self.0.rows()
}
pub fn cols(&self) -> usize{
self.0.cols()
}
pub fn log_base2k(&self) -> usize{
self.0.log_base2k()
}
}