Skip to main content

KeyExport

Trait KeyExport 

Source
pub trait KeyExport: KeySizeUser {
    // Required method
    fn to_bytes(&self) -> Array<u8, Self::KeySize>;
}
Expand description

Serialize a key to a byte array.

Required Methods§

Source

fn to_bytes(&self) -> Array<u8, Self::KeySize>

Serialize this key as a byte array.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<P> KeyExport for DecapsulationKey<P>
where P: KemParams,

Serialize the 64-byte Seed value used to initialize this DecapsulationKey.

§Panics

If this DecapsulationKey was initialized using legacy expanded key support (see ExpandedKeyEncoding).

Source§

fn to_bytes( &self, ) -> Array<u8, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>

Source§

impl<P> KeyExport for EncapsulationKey<P>
where P: KemParams,

Implementors§