Skip to main content

GGSWEncryptSk

Trait GGSWEncryptSk 

Source
pub trait GGSWEncryptSk<BE: Backend> {
    // Required methods
    fn ggsw_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
       where A: GGSWInfos;
    fn ggsw_encrypt_sk<R, P, S, E>(
        &self,
        res: &mut R,
        pt: &P,
        sk: &S,
        enc_infos: &E,
        source_xe: &mut Source,
        source_xa: &mut Source,
        scratch: &mut ScratchArena<'_, BE>,
    )
       where R: GGSWToBackendMut<BE> + GGSWInfos + GGSWAtViewMut<BE>,
             P: ScalarZnxToBackendRef<BE> + ZnxInfos,
             E: EncryptionInfos,
             S: GLWESecretPreparedToBackendRef<BE> + LWEInfos + GLWEInfos;
}

Required Methods§

Source

fn ggsw_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGSWInfos,

Source

fn ggsw_encrypt_sk<R, P, S, E>( &self, res: &mut R, pt: &P, sk: &S, enc_infos: &E, source_xe: &mut Source, source_xa: &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> GGSWEncryptSk<BE> for Module<BE>
where BE: Backend + EncryptionImpl<BE>,

Source§

fn ggsw_encrypt_sk_tmp_bytes<A>(&self, infos: &A) -> usize
where A: GGSWInfos,

Source§

fn ggsw_encrypt_sk<R, P, S, E>( &self, res: &mut R, pt: &P, sk: &S, enc_infos: &E, source_xe: &mut Source, source_xa: &mut Source, scratch: &mut ScratchArena<'_, BE>, )

Implementors§