Skip to main content

CompressedCiphertex

Trait CompressedCiphertex 

Source
pub trait CompressedCiphertex {
    const M: usize = _;

    // Required methods
    fn poly_bytes(&self) -> &[u8] ;
    fn polyvec_bytes(&self) -> &[u8] ;
    fn poly_bytes_mut(&mut self) -> &mut [u8] ;
    fn polyvec_bytes_mut(&mut self) -> &mut [u8] ;
}

Provided Associated Constants§

Source

const M: usize = _

Required Methods§

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]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

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>

Source§

const M: usize = M

Source§

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

Available on crate features std or alloc only.