Trait quinn::crypto::HandshakeTokenKey[][src]

pub trait HandshakeTokenKey: Send + Sync {
    type AeadKey: AeadKey;
    pub fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Self::AeadKey;
pub fn from_secret(secret: &[u8]) -> Self; }

A pseudo random key for HKDF

Associated Types

type AeadKey: AeadKey[src]

AEAD key type

Loading content...

Required methods

pub fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Self::AeadKey[src]

Derive AEAD using hkdf

pub fn from_secret(secret: &[u8]) -> Self[src]

Method to build pseudo random key from existing bytes

Loading content...

Implementations on Foreign Types

impl HandshakeTokenKey for Prk[src]

type AeadKey = LessSafeKey

Loading content...

Implementors

Loading content...