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>(
&self,
res: &mut R,
pt: &P,
pk: &K,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut Scratch<BE>,
)
where R: GLWEToMut,
P: GLWEPlaintextToRef + GLWEInfos,
K: GLWEPreparedToRef<BE> + GetDistribution + GLWEInfos;
fn glwe_encrypt_zero_pk<R, K>(
&self,
res: &mut R,
pk: &K,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut Scratch<BE>,
)
where R: GLWEToMut,
K: GLWEPreparedToRef<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>(
&self,
res: &mut R,
pt: &P,
pk: &K,
source_xu: &mut Source,
source_xe: &mut Source,
scratch: &mut Scratch<BE>,
)where
R: GLWEToMut,
P: GLWEPlaintextToRef + GLWEInfos,
K: GLWEPreparedToRef<BE> + GetDistribution + GLWEInfos,
fn glwe_encrypt_zero_pk<R, K>( &self, res: &mut R, pk: &K, source_xu: &mut Source, source_xe: &mut Source, scratch: &mut Scratch<BE>, )
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.