Function decrypt
Source pub fn decrypt(
key: &[u8; 32],
ciphertext: &[u8],
nonce: &[u8; 12],
) -> Result<Vec<u8>>
Expand description
Decrypt data with AES-256-GCM.
§Arguments
key - 32-byte decryption key
ciphertext - Encrypted data with appended tag
nonce - 12-byte nonce used during encryption
§Returns
Decrypted plaintext