GLWENoise

Trait GLWENoise 

Source
pub trait GLWENoise<BE: Backend> {
    // Required methods
    fn glwe_noise<R, S, P>(
        &self,
        res: &R,
        sk_prepared: &S,
        pt_want: &P,
        scratch: &mut Scratch<BE>,
    ) -> f64
       where R: GLWEToRef,
             S: GLWESecretPreparedToRef<BE>,
             P: GLWEPlaintextToRef;
    fn glwe_assert_noise<R, S, P>(
        &self,
        res: &R,
        sk_prepared: &S,
        pt_want: &P,
        max_noise: f64,
    )
       where R: GLWEToRef,
             S: GLWESecretPreparedToRef<BE>,
             P: GLWEPlaintextToRef;
}

Required Methods§

Source

fn glwe_noise<R, S, P>( &self, res: &R, sk_prepared: &S, pt_want: &P, scratch: &mut Scratch<BE>, ) -> f64

Source

fn glwe_assert_noise<R, S, P>( &self, res: &R, sk_prepared: &S, pt_want: &P, max_noise: f64, )

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> GLWENoise<BE> for Module<BE>

Source§

fn glwe_noise<R, S, P>( &self, res: &R, sk_prepared: &S, pt_want: &P, scratch: &mut Scratch<BE>, ) -> f64

Source§

fn glwe_assert_noise<R, S, P>( &self, res: &R, sk_prepared: &S, pt_want: &P, max_noise: f64, )

Implementors§