blob: 4f4f3b7a86d2089dc23698834203a1a02f186e30 [file] [log] [blame]
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
//> or the MIT license
// <LICENSE-MIT or>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
pub trait AeadEncryptor {
fn encrypt(&mut self, input: &[u8], output: &mut [u8], tag: &mut [u8]);
pub trait AeadDecryptor {
fn decrypt(&mut self, input: &[u8], output: &mut [u8], tag: &[u8]) -> bool;