Function engine::snapshot::write [−][src]
pub fn write<O: Write>(
plain: &[u8],
output: &mut O,
key: &Key,
associated_data: &[u8]
) -> Result<()>
Encrypt the opaque plaintext bytestring using the specified key and optional associated data and writes the ciphertext to the specifed output