mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +01:00
Added PrepareScratchSpace trait
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::{
|
||||
dist::Distribution,
|
||||
layouts::{
|
||||
Base2K, BuildError, Degree, GLWEInfos, GLWEPublicKey, LWEInfos, Rank, TorusPrecision,
|
||||
prepared::{Prepare, PrepareAlloc},
|
||||
prepared::{Prepare, PrepareAlloc, PrepareScratchSpace},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -180,6 +180,12 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<DR: DataRef, B: Backend, A: GLWEInfos> PrepareScratchSpace<B, A> for GLWEPublicKeyPrepared<DR, B> {
|
||||
fn prepare_scratch_space(&self, _module: &Module<B>, _infos: &A) -> usize {
|
||||
0
|
||||
}
|
||||
}
|
||||
|
||||
impl<DM: DataMut, DR: DataRef, B: Backend> Prepare<B, GLWEPublicKey<DR>> for GLWEPublicKeyPrepared<DM, B>
|
||||
where
|
||||
Module<B>: VecZnxDftApply<B>,
|
||||
|
||||
Reference in New Issue
Block a user