mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 05:06:44 +01:00
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:
committed by
GitHub
parent
4c59733566
commit
9aa4b1f1e2
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user