diff --git a/poulpy-core/src/scratch.rs b/poulpy-core/src/scratch.rs index 944fbd7..252385c 100644 --- a/poulpy-core/src/scratch.rs +++ b/poulpy-core/src/scratch.rs @@ -155,6 +155,24 @@ where ) } + fn take_ggsw_slice( + &mut self, + size: usize, + infos: &A, + ) -> (Vec>, &mut Self) + where + A: GGSWInfos, + { + let mut scratch: &mut Self = self; + let mut cts: Vec> = Vec::with_capacity(size); + for _ in 0..size { + let (ct, new_scratch) = scratch.take_ggsw(infos); + scratch = new_scratch; + cts.push(ct) + } + (cts, scratch) + } + fn take_ggsw_prepared_slice( &mut self, module: &M,