mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 21:26:41 +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,7 +14,7 @@ pub struct LWECiphertext<D: Data> {
|
||||
impl LWECiphertext<Vec<u8>> {
|
||||
pub fn alloc(n: usize, basek: usize, k: usize) -> Self {
|
||||
Self {
|
||||
data: VecZnx::new::<i64>(n + 1, 1, k.div_ceil(basek)),
|
||||
data: VecZnx::alloc::<i64>(n + 1, 1, k.div_ceil(basek)),
|
||||
k: k,
|
||||
basek: basek,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user