Skip to main content

GLWENoise

Trait GLWENoise 

Source
pub trait GLWENoise<BE: Backend> {
    // Required methods
    fn glwe_noise_tmp_bytes<A>(&self, infos: &A) -> usize
       where A: GLWEInfos;
    fn glwe_noise<R, P, S>(
        &self,
        res: &R,
        pt_want: &P,
        sk_prepared: &S,
        scratch: &mut ScratchArena<'_, BE>,
    ) -> Stats
       where R: GLWEToBackendRef<BE> + GLWEInfos,
             P: GLWEToBackendRef<BE>,
             S: GLWESecretPreparedToBackendRef<BE> + GLWEInfos,
             BE: HostBackend,
             for<'a> BE::BufRef<'a>: HostDataRef,
             for<'a> BE::BufMut<'a>: HostDataMut;
}

Required Methods§

Source

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

Source

fn glwe_noise<R, P, S>( &self, res: &R, pt_want: &P, sk_prepared: &S, scratch: &mut ScratchArena<'_, BE>, ) -> Stats
where R: GLWEToBackendRef<BE> + GLWEInfos, P: GLWEToBackendRef<BE>, S: GLWESecretPreparedToBackendRef<BE> + GLWEInfos, BE: HostBackend, for<'a> BE::BufRef<'a>: HostDataRef, for<'a> BE::BufMut<'a>: HostDataMut,

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: Backend + HostBackend> GLWENoise<BE> for Module<BE>

Source§

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

Source§

fn glwe_noise<R, P, S>( &self, res: &R, pt_want: &P, sk_prepared: &S, scratch: &mut ScratchArena<'_, BE>, ) -> Stats

Implementors§