[][src]Trait sarkara::Packing

pub trait Packing: Sized {
    const BYTES_LENGTH: usize;

    fn read_bytes<T, F>(&self, f: F) -> T
    where
        F: FnOnce(&[u8]) -> T
;
fn from_bytes(buf: &[u8]) -> Self; }

Associated Constants

Required Methods

TODO should be from_bytes(buf: &[u8; Self::LENGTH]) -> Self

Implementors

impl Packing for Message
[src]

impl Packing for sarkara::kex::kyber::PrivateKey
[src]

impl Packing for sarkara::kex::kyber::PublicKey
[src]

impl Packing for sarkara::sign::dilithium::PrivateKey
[src]

impl Packing for sarkara::sign::dilithium::PublicKey
[src]

impl Packing for SignatureData
[src]