Skip to main content

import_ikm

Function import_ikm 

Source
pub async fn import_ikm(
    raw: Vec<u8>,
    options: DeriveOptions,
) -> Result<Ikm, Error>
Expand description

Import input keying material. Empty material is accepted (RFC 5869 permits it, and the Web Cryptography API serves it), but an implementation enforcing a security policy MAY reject degenerate material with error.invalid-key, as on hmac-sha2.import-key-raw. Fails error.not-permitted if options grants nothing, per the package-wide options contract.