This commit is contained in:
Jean-Philippe Bossuat
2025-05-25 11:15:59 +02:00
parent 43c7f21033
commit cb284a4c4c
6 changed files with 83 additions and 24 deletions

View File

@@ -175,10 +175,7 @@ where
self.set_k(a.k());
}
pub fn rotate_inplace<A>(&mut self, module: &Module<FFT64>, k: i64)
where
A: VecZnxToRef + Infos,
{
pub fn rotate_inplace(&mut self, module: &Module<FFT64>, k: i64){
#[cfg(debug_assertions)]
{
assert_eq!(self.n(), module.n());
@@ -242,3 +239,9 @@ where
});
}
}
impl GLWECiphertext<Vec<u8>>{
pub fn rsh_scratch_space(module: &Module<FFT64>) -> usize{
VecZnx::rsh_scratch_space(module.n())
}
}