Function engine::snapshot::decrypt_content

source ยท
pub fn decrypt_content<I: Read>(
    input: &mut I,
    key: &Key
) -> Result<Zeroizing<Vec<u8>>, ReadError>
Expand description

Decrypt snapshot content with key using maximum work factor recommended for password-based (weak) keys.

Decryption may fail if the required amount of computation (work factor) exceeds the recommended value. In this case decrypt_content_with_work_factor with a larger work factor.