pub struct Ciphertext<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize = { KYBER_N / 8 }> { /* private fields */ }Trait Implementations§
Source§impl<const K: usize, const D1: usize, const D2: usize> CompressCiphertext for Ciphertext<D1, D2, K, 32>
impl<const K: usize, const D1: usize, const D2: usize> CompressCiphertext for Ciphertext<D1, D2, K, 32>
type PolyType = Poly<KyberFq, { KYBER_N / 2 }>
type PolyVecType = PolyVec<Poly<KyberFq, { KYBER_N / 2 }>, { KyberPoly::N }, K>
fn compress_poly(&mut self, v: &Self::PolyType)
fn decompress_poly(&self, v: &mut Self::PolyType)
fn compress_polyvec(&mut self, b: &Self::PolyVecType)
fn decompress_polyvec(&self, b: &mut Self::PolyVecType)
Source§impl<const D_POLY: usize, const D_PV: usize, const M: usize, const K: usize> CompressedCiphertex for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const M: usize, const K: usize> CompressedCiphertex for Ciphertext<D_POLY, D_PV, K, M>
Auto Trait Implementations§
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> Freeze for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> RefUnwindSafe for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> Send for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> Sync for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> Unpin for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> UnsafeUnpin for Ciphertext<D_POLY, D_PV, K, M>
impl<const D_POLY: usize, const D_PV: usize, const K: usize, const M: usize> UnwindSafe for Ciphertext<D_POLY, D_PV, K, M>
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