Dev serialization (#64)

* Added compressed serialization for GLWECiphertext + Ciphertext decompression

* Added compressed serialization for GGLWECiphertext & GLWESwitchingkey

* generalized automorphism test

* Removed ops on scalar_znx, replaced by as_vec_znx/as_vec_znx_mut and then call op on vec_znx

* Added tests for automorphism key encryption

* Added tensorkey compressed

* added ggsw compressed
This commit is contained in:
Jean-Philippe Bossuat
2025-08-12 17:43:28 +02:00
committed by GitHub
parent 4c59733566
commit 9aa4b1f1e2
68 changed files with 3430 additions and 1695 deletions

View File

@@ -14,11 +14,10 @@ impl Source {
}
}
pub fn branch(&mut self) -> Self {
pub fn branch(&mut self) -> ([u8; 32], Self) {
let mut seed = [0; 32];
self.source.fill_bytes(&mut seed);
Source::new(seed)
(seed, Source::new(seed))
}
#[inline(always)]