[][src]Trait hpke::Marshallable

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

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

Implemented by types that have a fixed-length byte representation

Associated Types

type OutputSize: ArrayLength<u8>

Loading content...

Required methods

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

Loading content...

Provided methods

fn size() -> usize

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

Loading content...

Implementors

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

type OutputSize = <A::AeadImpl as BaseAead>::TagSize

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

type OutputSize = <Kex::PublicKey as Marshallable>::OutputSize

Loading content...