Skip to main content

import_ikm

Function import_ikm 

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

Import input keying material.

IKM is a cryptographic secret (a shared secret, a master key) — for a human-chosen password, use pbkdf2::import_password instead. Empty material fails Error::InvalidKey; a policy with no grant enabled fails Error::NotPermitted.