pub trait GLWEEncryptPk<BE: Backend> {
// Required methods
fn glwe_encrypt_pk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GLWEInfos;
fn glwe_encrypt_pk<R, P, K, E>(
&self,
res: &mut R,
pt: &P,
pk: &K,
enc_infos: &E,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut ScratchArena<'_, BE>,
)
where R: GLWEToBackendMut<BE> + GLWEInfos,
P: GLWEToBackendRef<BE> + GLWEInfos,
E: EncryptionInfos,
K: GLWEPreparedToBackendRef<BE> + GetDistribution + GLWEInfos;
fn glwe_encrypt_zero_pk<R, K, E>(
&self,
res: &mut R,
pk: &K,
enc_infos: &E,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut ScratchArena<'_, BE>,
)
where R: GLWEToBackendMut<BE> + GLWEInfos,
E: EncryptionInfos,
K: GLWEPreparedToBackendRef<BE> + GetDistribution + GLWEInfos;
}Required Methods§
fn glwe_encrypt_pk_tmp_bytes<A>(&self, infos: &A) -> usizewhere
A: GLWEInfos,
fn glwe_encrypt_pk<R, P, K, E>(
&self,
res: &mut R,
pt: &P,
pk: &K,
enc_infos: &E,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut ScratchArena<'_, BE>,
)where
R: GLWEToBackendMut<BE> + GLWEInfos,
P: GLWEToBackendRef<BE> + GLWEInfos,
E: EncryptionInfos,
K: GLWEPreparedToBackendRef<BE> + GetDistribution + GLWEInfos,
fn glwe_encrypt_zero_pk<R, K, E>(
&self,
res: &mut R,
pk: &K,
enc_infos: &E,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut ScratchArena<'_, BE>,
)where
R: GLWEToBackendMut<BE> + GLWEInfos,
E: EncryptionInfos,
K: GLWEPreparedToBackendRef<BE> + GetDistribution + GLWEInfos,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.