pub async fn prepare(
variant: Sha2Variant,
input: &Ikm,
salt: impl Into<Vec<u8>>,
info: impl Into<Vec<u8>>,
) -> Result<DeriveInput, Error>Expand description
Parameterize an HKDF derivation over imported keying material:
HKDF-Extract runs with salt, and info is bound for the expand step.
An empty salt means the RFC’s default (a hash-length block of
zeros). The grants are copied from input.