Skip to main content

unwrap_key_raw

Function unwrap_key_raw 

Source
pub async fn unwrap_key_raw(
    variant: Sha2Variant,
    input: UnwrapInput,
    options: MacKeyOptions,
) -> Result<MacKey, Error>
Expand description

Mint a key from unwrapped key material (see the wrapping interface): input’s bytes are read as raw key material, subject to import-key-raw’s contract. input is consumed.

The minted key’s usages and extractability come from options alone (the W3C Web Cryptography API’s unwrapKey model).