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