Skip to main content

derive_wrap_key

Function derive_wrap_key 

Source
pub fn derive_wrap_key(
    passphrase: &[u8],
    salt: &[u8],
    p: Argon2Params,
) -> Result<[u8; 32], CryptoError>
Expand description

Derive a 32-byte wrapping key from a passphrase and salt via Argon2id. Exposed so the backup artifact can use one passphrase-derived key for both its MANIFEST HMAC and its AMK-ledger seal (SSoT: Backup — Master-Key Escrow).