decrypt_bytes

Function decrypt_bytes 

Source
pub fn decrypt_bytes(
    input: &[u8],
    password: SecretString,
) -> Result<Vec<u8>, EncFileError>
Expand description

Decrypt a byte slice that was produced by encrypt_bytes.

The function parses the self-describing header, derives the key using the embedded Argon2id parameters, and verifies the AEAD tag before returning the plaintext.