pub fn write<O: Write>(
    plain: &[u8],
    output: &mut O,
    key: &Key,
    associated_data: &[u8]
) -> Result<(), WriteError>
Expand description

Encrypt the opaque plaintext bytestring using the specified Key and optional associated data and writes the ciphertext to the specifed output