pub async fn prepare(
variant: Sha2Variant,
input: &Ikm,
salt: Vec<u8>,
info: Vec<u8>,
) -> Result<DeriveInput, Error>Expand description
Parameterize a derivation: HKDF-Extract with salt runs over the
material (eagerly, so the returned input retains the PRK rather
than the IKM), and info is bound for the expand step at use.
An implementation not serving the variant fails
error.unsupported (the truncated SHA-2 variants are unserved
package-wide, as for hmac-sha2).