Skip to main content

LWEFillMask

Trait LWEFillMask 

Source
pub trait LWEFillMask<BE: Backend> {
    // Required methods
    fn fill_lwe_mask_from_source<R>(
        &self,
        base2k: usize,
        res: &mut R,
        source_xa: &mut Source,
    )
       where R: LWEToBackendMut<BE>;
    fn fill_lwe_mask_from_seed<R>(
        &self,
        base2k: usize,
        res: &mut R,
        seed_xa: [u8; 32],
    )
       where R: LWEToBackendMut<BE>;
}

Required Methods§

Source

fn fill_lwe_mask_from_source<R>( &self, base2k: usize, res: &mut R, source_xa: &mut Source, )
where R: LWEToBackendMut<BE>,

Fill the LWE mask from source_xa.

Source

fn fill_lwe_mask_from_seed<R>( &self, base2k: usize, res: &mut R, seed_xa: [u8; 32], )
where R: LWEToBackendMut<BE>,

Fill the LWE mask from a deterministic seed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<BE> LWEFillMask<BE> for Module<BE>
where BE: Backend + EncryptionImpl<BE>,

Source§

fn fill_lwe_mask_from_source<R>( &self, base2k: usize, res: &mut R, source_xa: &mut Source, )
where R: LWEToBackendMut<BE>,

Source§

fn fill_lwe_mask_from_seed<R>( &self, base2k: usize, res: &mut R, seed_xa: [u8; 32], )
where R: LWEToBackendMut<BE>,

Implementors§