Skip to main content

VecEnvelope

Type Alias VecEnvelope 

Source
pub type VecEnvelope = DryocAeadEnvelope<Nonce, Mac, Vec<u8>>;
Available on crate feature alloc only.
Expand description

Vec-based XChaCha20-Poly1305-IETF AEAD envelope.

Aliased Type§

pub struct VecEnvelope { /* private fields */ }

Trait Implementations§

Source§

impl<'de, C: Config> SchemaRead<'de, C> for VecEnvelope

Available on crate feature wincode_0_6 only.
Source§

type Dst = AeadEnvelope<XChaCha20Poly1305Ietf, StackByteArray<CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES>, StackByteArray<CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES>, Vec<u8>>

Source§

fn read( reader: impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> ReadResult<()>

Read into dst from reader. Read more
Source§

const TYPE_META: TypeMeta = TypeMeta::Dynamic

Metadata about the type’s serialization. Read more
Source§

fn get(reader: impl Reader<'de>) -> Result<Self::Dst, ReadError>

Read Self::Dst from reader into a new Self::Dst.
Source§

impl<C: Config> SchemaWrite<C> for VecEnvelope

Available on crate feature wincode_0_6 only.
Source§

type Src = AeadEnvelope<XChaCha20Poly1305Ietf, StackByteArray<CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES>, StackByteArray<CRYPTO_AEAD_XCHACHA20POLY1305_IETF_ABYTES>, Vec<u8>>

Source§

fn size_of(src: &Self::Src) -> WriteResult<usize>

Get the serialized size of Self::Src. Read more
Source§

fn write(writer: impl Writer, src: &Self::Src) -> WriteResult<()>

Write Self::Src to writer.
Source§

const TYPE_META: TypeMeta = TypeMeta::Dynamic

Metadata about the type’s serialization. Read more