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

random_to_key

Function random_to_key 

Source
pub fn random_to_key(random_bytes: &[u8], etype: EncryptionType) -> Vec<u8>
Expand description

Convert random bytes to a key (random-to-key).

For AES, this is the identity function: the random bytes ARE the key.