Added bytes_of to structs that can be created through the trait extension of Scratch

This commit is contained in:
Jean-Philippe Bossuat
2025-05-28 15:19:52 +02:00
parent 187756a495
commit f58d06ddf5
8 changed files with 41 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ impl GLWESwitchingKey<Vec<u8>, FFT64> {
module, basek, k, rows, rank_in, rank_out,
))
}
pub fn bytes_of(module: &Module<FFT64>, basek: usize, k: usize, rows: usize, rank_in: usize, rank_out: usize) -> usize {
GGLWECiphertext::<Vec<u8>, FFT64>::bytes_of(module, basek, k, rows, rank_in, rank_out)
}
}
impl<T, B: Backend> Infos for GLWESwitchingKey<T, B> {