Skip to main content

derive_key

Function derive_key 

Source
pub fn derive_key(context: &str, key_material: &[u8]) -> [u8; 64]
Expand description

Derive a key from a context string and key material.

This is a two-phase operation:

  1. Hash the context string with domain separation
  2. Use the context hash to seed a second hasher that absorbs the key material