Function derive_encryption_key

Source
pub fn derive_encryption_key(master_key: &[u8], context: &str) -> [u8; 32]
Expand description

Derive an encryption key from a master key and context

This uses HKDF (HMAC-based Key Derivation Function) to derive context-specific keys from a master key.