pub fn extract_sha256(salt: &[u8], ikm: &[u8]) -> [u8; 32]Expand description
Extract a fixed-length pseudorandom key from input keying material
This is the first phase of HKDF. It takes some source of initial keying material and derives from it a fixed-length pseudorandom key.
§Arguments
salt- Optional salt value (can be empty)ikm- Input keying material
§Returns
A 32-byte pseudorandom key
§Example
use crypto_async_rs::hkdf;
let salt = b"random-salt";
let ikm = b"input-key-material";
let prk = hkdf::extract_sha256(salt, ikm);