Key

Trait Key 

Source
pub trait Key {
    // Required methods
    fn encryption_key(&self) -> &Key;
    fn hmac_key(&self) -> &[u8; 32];
}
Expand description

Allows access to the subkeys of a key-like structure

Required Methods§

Source

fn encryption_key(&self) -> &Key

Provides the encryption key as a chacha Key

Source

fn hmac_key(&self) -> &[u8; 32]

Provides the hmac key

Implementors§