pub fn read<I: Read>(
input: &mut I,
key: &Key,
associated_data: &[u8]
) -> Result<Vec<u8>, ReadError>
Expand description
Read ciphertext from the input, decrypts it using the specified key and the associated data specified during encryption and returns the plaintext