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