LWEToGLWESwitchingKeyEncryptSk

Trait LWEToGLWESwitchingKeyEncryptSk 

Source
pub trait LWEToGLWESwitchingKeyEncryptSk<BE: Backend> {
    // Required methods
    fn lwe_to_glwe_switching_key_encrypt_sk_tmp_bytes<A>(
        &self,
        infos: &A,
    ) -> usize
       where A: GGLWEInfos;
    fn lwe_to_glwe_switching_key_encrypt_sk<R, S1, S2>(
        &self,
        res: &mut R,
        sk_lwe: &S1,
        sk_glwe: &S2,
        source_xa: &mut Source,
        source_xe: &mut Source,
        scratch: &mut Scratch<BE>,
    )
       where S1: LWESecretToRef,
             S2: GLWESecretPreparedToRef<BE>,
             R: GGLWEToMut;
}

Required Methods§

Source

fn lwe_to_glwe_switching_key_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGLWEInfos,

Source

fn lwe_to_glwe_switching_key_encrypt_sk<R, S1, S2>( &self, res: &mut R, sk_lwe: &S1, sk_glwe: &S2, 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> LWEToGLWESwitchingKeyEncryptSk<BE> for Module<BE>

Source§

fn lwe_to_glwe_switching_key_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGLWEInfos,

Source§

fn lwe_to_glwe_switching_key_encrypt_sk<R, S1, S2>( &self, res: &mut R, sk_lwe: &S1, sk_glwe: &S2, source_xa: &mut Source, source_xe: &mut Source, scratch: &mut Scratch<BE>, )

Implementors§