pub fn derive_key(context: &str, ikm: &[u8]) -> [u8; 32]Expand description
Derive a 32-byte key from input material with domain separation.
§Arguments
context- Static domain separation string (must be compile-time constant)ikm- Input key material (e.g., shared_secret || salt)
§Returns
32-byte derived key.
§Backend Behavior
- Blake3: Uses
blake3::derive_key(context, ikm) - FIPS: Uses
HKDF-Expand(HKDF-Extract(ikm), context)