Skip to main content

VecCipherText

Struct VecCipherText 

Source
pub struct VecCipherText<const K: usize>(/* private fields */);

Trait Implementations§

Source§

impl<const K: usize> AsMut<[u8]> for VecCipherText<K>

Available on crate features std or alloc only.
Source§

fn as_mut(&mut self) -> &mut [u8]

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<const K: usize> AsRef<[u8]> for VecCipherText<K>

Available on crate features std or alloc only.
Source§

fn as_ref(&self) -> &[u8]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<const K: usize> CompressCiphertext for VecCipherText<K>

Available on crate features std or alloc only.
Source§

type PolyType = Poly<KyberFq, { KYBER_N / 2 }>

Source§

type PolyVecType = PolyVec<Poly<KyberFq, { KYBER_N / 2 }>, { KyberPoly::N }, K>

Source§

fn compress_poly(&mut self, v: &KyberPoly)

Source§

fn compress_polyvec(&mut self, b: &KyberPolyVec<K>)

Source§

fn decompress_poly(&self, v: &mut Self::PolyType)

Source§

fn decompress_polyvec(&self, b: &mut Self::PolyVecType)

Source§

impl<const K: usize> CompressedCiphertex for VecCipherText<K>

Available on crate features std or alloc only.
Source§

const M: usize

Source§

fn poly_bytes(&self) -> &[u8]

Source§

fn polyvec_bytes(&self) -> &[u8]

Source§

fn poly_bytes_mut(&mut self) -> &mut [u8]

Source§

fn polyvec_bytes_mut(&mut self) -> &mut [u8]

Source§

impl<const K: usize> Default for VecCipherText<K>

Available on crate features std or alloc only.
Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<const K: usize> Freeze for VecCipherText<K>

§

impl<const K: usize> RefUnwindSafe for VecCipherText<K>

§

impl<const K: usize> Send for VecCipherText<K>

§

impl<const K: usize> Sync for VecCipherText<K>

§

impl<const K: usize> Unpin for VecCipherText<K>

§

impl<const K: usize> UnsafeUnpin for VecCipherText<K>

§

impl<const K: usize> UnwindSafe for VecCipherText<K>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V