pub struct GGLWEToGGSWKeyCompressed<D: Data> { /* private fields */ }Expand description
Seed-compressed GGLWE-to-GGSW key-switching key layout.
A vector of GGLWECompressed entries, one per rank element,
used for GGLWE-to-GGSW conversion. The mask of each GGLWE is
regenerated from its PRNG seed during decompression.
Implementations§
Source§impl GGLWEToGGSWKeyCompressed<Vec<u8>>
impl GGLWEToGGSWKeyCompressed<Vec<u8>>
Sourcepub fn bytes_of_from_infos<A>(infos: &A) -> usizewhere
A: GGLWEInfos,
pub fn bytes_of_from_infos<A>(infos: &A) -> usizewhere
A: GGLWEInfos,
Returns the serialized byte size by copying parameters from an existing info provider.
Source§impl<D: HostDataMut> GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataMut> GGLWEToGGSWKeyCompressed<D>
pub fn at_mut(&mut self, i: usize) -> &mut GGLWECompressed<D>
Source§impl<D: HostDataRef> GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataRef> GGLWEToGGSWKeyCompressed<D>
pub fn at(&self, i: usize) -> &GGLWECompressed<D>
Trait Implementations§
Source§impl<D: Clone + Data> Clone for GGLWEToGGSWKeyCompressed<D>
impl<D: Clone + Data> Clone for GGLWEToGGSWKeyCompressed<D>
Source§fn clone(&self) -> GGLWEToGGSWKeyCompressed<D>
fn clone(&self) -> GGLWEToGGSWKeyCompressed<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: HostDataRef> Debug for GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataRef> Debug for GGLWEToGGSWKeyCompressed<D>
Source§impl<D: HostDataRef> Display for GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataRef> Display for GGLWEToGGSWKeyCompressed<D>
Source§impl<D: HostDataMut> FillUniform for GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataMut> FillUniform for GGLWEToGGSWKeyCompressed<D>
Source§impl<D: Data> GGLWEInfos for GGLWEToGGSWKeyCompressed<D>
impl<D: Data> GGLWEInfos for GGLWEToGGSWKeyCompressed<D>
Source§impl<BE: Backend> GGLWEToGGSWKeyCompressedToBackendMut<BE> for GGLWEToGGSWKeyCompressed<BE::OwnedBuf>
impl<BE: Backend> GGLWEToGGSWKeyCompressedToBackendMut<BE> for GGLWEToGGSWKeyCompressed<BE::OwnedBuf>
fn to_backend_mut(&mut self) -> GGLWEToGGSWKeyCompressedBackendMut<'_, BE>
Source§impl<BE: Backend> GGLWEToGGSWKeyCompressedToBackendRef<BE> for GGLWEToGGSWKeyCompressed<BE::OwnedBuf>
impl<BE: Backend> GGLWEToGGSWKeyCompressedToBackendRef<BE> for GGLWEToGGSWKeyCompressed<BE::OwnedBuf>
fn to_backend_ref(&self) -> GGLWEToGGSWKeyCompressedBackendRef<'_, BE>
Source§impl<D: Data> GLWEInfos for GGLWEToGGSWKeyCompressed<D>
impl<D: Data> GLWEInfos for GGLWEToGGSWKeyCompressed<D>
Source§fn glwe_layout(&self) -> GLWELayout
fn glwe_layout(&self) -> GLWELayout
Returns a plain-data
GLWELayout snapshot of the current parameters.Source§impl<D: Data> LWEInfos for GGLWEToGGSWKeyCompressed<D>
impl<D: Data> LWEInfos for GGLWEToGGSWKeyCompressed<D>
Source§fn n(&self) -> Degree
fn n(&self) -> Degree
Returns the LWE dimension, i.e. the number of mask elements (= GLWE ring degree N).
Source§fn base2k(&self) -> Base2K
fn base2k(&self) -> Base2K
Returns the base-2-log of the limb width used for the RNS/CRT representation.
Source§fn max_k(&self) -> TorusPrecision
fn max_k(&self) -> TorusPrecision
Returns the maximum torus precision representable with the current limb decomposition.
Source§fn lwe_layout(&self) -> LWELayout
fn lwe_layout(&self) -> LWELayout
Returns a plain-data
LWELayout snapshot of the current parameters.Source§impl<D: PartialEq + Data> PartialEq for GGLWEToGGSWKeyCompressed<D>
impl<D: PartialEq + Data> PartialEq for GGLWEToGGSWKeyCompressed<D>
Source§fn eq(&self, other: &GGLWEToGGSWKeyCompressed<D>) -> bool
fn eq(&self, other: &GGLWEToGGSWKeyCompressed<D>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<D: HostDataMut> ReaderFrom for GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataMut> ReaderFrom for GGLWEToGGSWKeyCompressed<D>
Source§impl<D: HostDataRef> WriterTo for GGLWEToGGSWKeyCompressed<D>
impl<D: HostDataRef> WriterTo for GGLWEToGGSWKeyCompressed<D>
impl<D: Eq + Data> Eq for GGLWEToGGSWKeyCompressed<D>
impl<D: Data> StructuralPartialEq for GGLWEToGGSWKeyCompressed<D>
Auto Trait Implementations§
impl<D> Freeze for GGLWEToGGSWKeyCompressed<D>
impl<D> RefUnwindSafe for GGLWEToGGSWKeyCompressed<D>where
D: RefUnwindSafe,
impl<D> Send for GGLWEToGGSWKeyCompressed<D>where
D: Send,
impl<D> Sync for GGLWEToGGSWKeyCompressed<D>where
D: Sync,
impl<D> Unpin for GGLWEToGGSWKeyCompressed<D>where
D: Unpin,
impl<D> UnsafeUnpin for GGLWEToGGSWKeyCompressed<D>
impl<D> UnwindSafe for GGLWEToGGSWKeyCompressed<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more