mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
wip on gadget product
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user