This commit is contained in:
Pro7ech
2025-10-15 11:18:52 +02:00
parent 9f64f691ca
commit 58bee4805e
2 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ use crate::{
}, },
}; };
impl<DataSelf: DataMut> GLWE<DataSelf> { impl GLWE<Vec<u8>> {
pub fn external_product_scratch_space<R, A, B, M, BE: Backend>(module: &M, res_infos: &R, a_infos: &A, b_infos: &B) -> usize pub fn external_product_scratch_space<R, A, B, M, BE: Backend>(module: &M, res_infos: &R, a_infos: &A, b_infos: &B) -> usize
where where
R: GLWEInfos, R: GLWEInfos,
@@ -24,7 +24,9 @@ impl<DataSelf: DataMut> GLWE<DataSelf> {
{ {
module.glwe_external_product_scratch_space(res_infos, a_infos, b_infos) module.glwe_external_product_scratch_space(res_infos, a_infos, b_infos)
} }
}
impl<DataSelf: DataMut> GLWE<DataSelf> {
pub fn external_product<A, B, M, BE: Backend>(&mut self, module: &M, a: &A, b: &B, scratch: &mut Scratch<BE>) pub fn external_product<A, B, M, BE: Backend>(&mut self, module: &M, a: &A, b: &B, scratch: &mut Scratch<BE>)
where where
A: GLWEToRef, A: GLWEToRef,

View File

@@ -3,6 +3,6 @@ mod gglwe_ksk;
mod ggsw_ct; mod ggsw_ct;
mod glwe_ct; mod glwe_ct;
pub use glwe_ct::*;
pub use gglwe_ksk::*; pub use gglwe_ksk::*;
pub use ggsw_ct::*; pub use ggsw_ct::*;
pub use glwe_ct::*;