GLWEEncryptSk

Trait GLWEEncryptSk 

Source
pub trait GLWEEncryptSk<BE: Backend> {
    // Required methods
    fn glwe_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
       where A: GLWEInfos;
    fn glwe_encrypt_sk<R, P, S>(
        &self,
        res: &mut R,
        pt: &P,
        sk: &S,
        source_xa: &mut Source,
        source_xe: &mut Source,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut,
             P: GLWEPlaintextToRef,
             S: GLWESecretPreparedToRef<BE>;
    fn glwe_encrypt_zero_sk<R, S>(
        &self,
        res: &mut R,
        sk: &S,
        source_xa: &mut Source,
        source_xe: &mut Source,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWEToMut,
             S: GLWESecretPreparedToRef<BE>;
}

Required Methods§

Source

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

Source

fn glwe_encrypt_sk<R, P, S>( &self, res: &mut R, pt: &P, sk: &S, source_xa: &mut Source, source_xe: &mut Source, scratch: &mut Scratch<BE>, )

Source

fn glwe_encrypt_zero_sk<R, S>( &self, res: &mut R, sk: &S, source_xa: &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.

Implementations on Foreign Types§

Source§

impl<BE: Backend> GLWEEncryptSk<BE> for Module<BE>
where Self: Sized + ModuleN + VecZnxNormalizeTmpBytes + VecZnxDftBytesOf + GLWEEncryptSkInternal<BE>, Scratch<BE>: ScratchAvailable,

Source§

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

Source§

fn glwe_encrypt_sk<R, P, S>( &self, res: &mut R, pt: &P, sk: &S, source_xa: &mut Source, source_xe: &mut Source, scratch: &mut Scratch<BE>, )

Source§

fn glwe_encrypt_zero_sk<R, S>( &self, res: &mut R, sk: &S, source_xa: &mut Source, source_xe: &mut Source, scratch: &mut Scratch<BE>, )

Implementors§