iroh_quinn::crypto

Trait HandshakeTokenKey

Source
pub trait HandshakeTokenKey: Send + Sync {
    // Required method
    fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>;
}
Expand description

A pseudo random key for HKDF

Required Methods§

Source

fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>

Derive AEAD using hkdf

Implementations on Foreign Types§

Source§

impl HandshakeTokenKey for Prk

Source§

fn aead_from_hkdf(&self, random_bytes: &[u8]) -> Box<dyn AeadKey>

Implementors§