GLWECompressedEncryptSk

Trait GLWECompressedEncryptSk 

Source
pub trait GLWECompressedEncryptSk<BE: Backend> {
    // Required methods
    fn glwe_compressed_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
       where A: GLWEInfos;
    fn glwe_compressed_encrypt_sk<R, P, S>(
        &self,
        res: &mut R,
        pt: &P,
        sk: &S,
        seed_xa: [u8; 32],
        source_xe: &mut Source,
        scratch: &mut Scratch<BE>,
    )
       where R: GLWECompressedToMut + GLWECompressedSeedMut,
             P: GLWEPlaintextToRef,
             S: GLWESecretPreparedToRef<BE>;
}

Required Methods§

Source

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

Source

fn glwe_compressed_encrypt_sk<R, P, S>( &self, res: &mut R, pt: &P, sk: &S, seed_xa: [u8; 32], 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> GLWECompressedEncryptSk<BE> for Module<BE>
where Self: GLWEEncryptSkInternal<BE> + GLWEEncryptSk<BE>,

Source§

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

Source§

fn glwe_compressed_encrypt_sk<R, P, S>( &self, res: &mut R, pt: &P, sk: &S, seed_xa: [u8; 32], source_xe: &mut Source, scratch: &mut Scratch<BE>, )

Implementors§