encrypt_with_context

Function encrypt_with_context 

Source
pub fn encrypt_with_context<'a>(
    data: &'a [u8],
    cipher_obj: &Arc<Cipher>,
    cipher_ctx: &Option<CipherContext>,
    encrypted: bool,
) -> Result<Cow<'a, [u8]>, Error>