decrypt

Function decrypt 

Source
pub fn decrypt(encrypted: &EncryptionResult, key: &Key) -> Result<Vec<u8>>
Expand description

Decrypt data using AEAD decryption.

Automatically detects the algorithm from the encrypted data.

§Arguments

  • encrypted - Encrypted data (binary format or EncryptionResult)
  • key - 256-bit decryption key

§Returns

Decrypted plaintext.