Skip to main content

import_password

Function import_password 

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

Import a password.

Empty passwords are accepted, unlike hkdf.import-ikm: RFC 8018 admits an empty P and the platform serves it. Fails error.not-permitted if options grants nothing, per the package-wide options contract (see README.md).