Skip to main content

GLWEDecrypt

Trait GLWEDecrypt 

Source
pub trait GLWEDecrypt<BE: Backend> {
    // Required methods
    fn glwe_decrypt_tmp_bytes<A>(&self, infos: &A) -> usize
       where A: GLWEInfos;
    fn glwe_decrypt<R, P, S>(
        &self,
        res: &R,
        pt: &mut P,
        sk: &S,
        scratch: &mut ScratchArena<'_, BE>,
    )
       where R: GLWEToBackendRef<BE> + GLWEInfos,
             P: GLWEToBackendMut<BE> + GLWEInfos + SetLWEInfos,
             S: GLWESecretPreparedToBackendRef<BE> + GLWEInfos;
}

Required Methods§

Source

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

Source

fn glwe_decrypt<R, P, S>( &self, res: &R, pt: &mut P, sk: &S, 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> GLWEDecrypt<BE> for Module<BE>

Source§

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

Source§

fn glwe_decrypt<R, P, S>( &self, res: &R, pt: &mut P, sk: &S, scratch: &mut ScratchArena<'_, BE>, )

Implementors§