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§
Sourcefn encryption_key(&self) -> &Key
fn encryption_key(&self) -> &Key
Provides the encryption key as a chacha Key