⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

derive_usage_key

Function derive_usage_key 

Source
pub fn derive_usage_key(base_key: &[u8], usage: u32) -> Vec<u8>
Expand description

Derive a usage-specific key (dk) from a base key.

Per RFC 3961: dk(base_key, usage) = DK(base_key, usage_constant) This is a stub that returns a truncated HMAC of the base key.