Skip to main content

GLWEEncryptPk

Trait GLWEEncryptPk 

Source
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§

Source

fn glwe_encrypt_pk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GLWEInfos,

Source

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>, )

Source

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>, )

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.

Implementations on Foreign Types§

Source§

impl<BE> GLWEEncryptPk<BE> for Module<BE>
where BE: Backend + EncryptionImpl<BE>,

Source§

fn glwe_encrypt_pk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GLWEInfos,

Source§

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>, )

Source§

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>, )

Implementors§