Skip to main content

GLWETensorKeyCompressedEncryptSk

Trait GLWETensorKeyCompressedEncryptSk 

Source
pub trait GLWETensorKeyCompressedEncryptSk<BE: Backend> {
    // Required methods
    fn glwe_tensor_key_compressed_encrypt_sk_tmp_bytes<A>(
        &self,
        infos: &A,
    ) -> usize
       where A: GGLWEInfos;
    fn glwe_tensor_key_compressed_encrypt_sk<R, S, E>(
        &self,
        res: &mut R,
        sk: &S,
        seed_xa: [u8; 32],
        enc_infos: &E,
        source_xe: &mut Source,
        scratch: &mut ScratchArena<'_, BE>,
    )
       where R: GGLWECompressedToBackendMut<BE> + GGLWEInfos + GGLWECompressedSeedMut,
             E: EncryptionInfos,
             S: GLWESecretToBackendRef<BE> + GetDistribution + GLWEInfos;
}

Required Methods§

Source

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

Source

fn glwe_tensor_key_compressed_encrypt_sk<R, S, E>( &self, res: &mut R, sk: &S, seed_xa: [u8; 32], enc_infos: &E, source_xe: &mut Source, 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> GLWETensorKeyCompressedEncryptSk<BE> for Module<BE>
where BE: Backend + EncryptionImpl<BE>,

Source§

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

Source§

fn glwe_tensor_key_compressed_encrypt_sk<R, S, E>( &self, res: &mut R, sk: &S, seed_xa: [u8; 32], enc_infos: &E, source_xe: &mut Source, scratch: &mut ScratchArena<'_, BE>, )

Implementors§