Function engine::snapshot::read[][src]

pub fn read<I: Read>(
    input: &mut I,
    key: &Key,
    associated_data: &[u8]
) -> Result<Vec<u8>>

Read ciphertext from the input, decrypts it using the specified key and the associated data specified during encryption and returns the plaintext