mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
Removed traits on structs not dependent on Module API
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::{
|
||||
ScratchTakeCore,
|
||||
encryption::compressed::gglwe_ksk::GLWESwitchingKeyCompressedEncryptSk,
|
||||
layouts::{
|
||||
GGLWEInfos, GLWEInfos, GLWESecret, GLWESecretAlloc, GLWESecretToRef, LWEInfos,
|
||||
GGLWEInfos, GLWEInfos, GLWESecret, GLWESecretToRef, LWEInfos,
|
||||
compressed::{AutomorphismKeyCompressed, AutomorphismKeyCompressedToMut},
|
||||
},
|
||||
};
|
||||
@@ -68,7 +68,7 @@ where
|
||||
where
|
||||
A: GGLWEInfos,
|
||||
{
|
||||
self.glwe_switching_key_compressed_encrypt_sk_tmp_bytes(infos) + self.bytes_of_glwe_secret(infos.rank())
|
||||
self.glwe_switching_key_compressed_encrypt_sk_tmp_bytes(infos) + GLWESecret::bytes_of(self.n().into(), infos.rank())
|
||||
}
|
||||
|
||||
fn automorphism_key_compressed_encrypt_sk<R, S>(
|
||||
|
||||
@@ -11,7 +11,7 @@ use crate::{
|
||||
glwe_ct::{GLWEEncryptSk, GLWEEncryptSkInternal},
|
||||
},
|
||||
layouts::{
|
||||
GGLWECompressedSeedMut, GGLWEInfos, GLWEPlaintextAlloc, GLWESecretPrepared, LWEInfos,
|
||||
GGLWECompressedSeedMut, GGLWEInfos, GLWEPlaintext, GLWESecretPrepared, LWEInfos,
|
||||
compressed::{GGLWECompressed, GGLWECompressedToMut},
|
||||
prepared::GLWESecretPreparedToRef,
|
||||
},
|
||||
@@ -82,7 +82,7 @@ where
|
||||
{
|
||||
self.glwe_encrypt_sk_tmp_bytes(infos)
|
||||
.max(self.vec_znx_normalize_tmp_bytes())
|
||||
+ self.bytes_of_glwe_plaintext_from_infos(infos)
|
||||
+ GLWEPlaintext::bytes_of_from_infos(infos)
|
||||
}
|
||||
|
||||
fn gglwe_compressed_encrypt_sk<R, P, S>(
|
||||
|
||||
Reference in New Issue
Block a user