[][src]Trait hpke::kex::Unmarshallable

pub trait Unmarshallable: Marshallable + Sized {
    fn unmarshal(encoded: &[u8]) -> Result<Self, HpkeError>;
}

Implemented by types that can be deserialized from byte representation

Required methods

fn unmarshal(encoded: &[u8]) -> Result<Self, HpkeError>

Loading content...

Implementors

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

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

Loading content...