[][src]Trait hpke::Serializable

pub trait Serializable {
    type OutputSize: ArrayLength<u8>;
    fn to_bytes(&self) -> GenericArray<u8, Self::OutputSize>;

    fn size() -> usize { ... }
}

Implemented by types that have a fixed-length byte representation

Associated Types

Loading content...

Required methods

fn to_bytes(&self) -> GenericArray<u8, Self::OutputSize>

Loading content...

Provided methods

fn size() -> usize

Returns the size (in bytes) of this type when serialized

Loading content...

Implementors

impl<A: Aead> Serializable for AeadTag<A>[src]

impl<Kex: KeyExchange> Serializable for EncappedKey<Kex>[src]

Loading content...