RustCrypto: OCB3
Pure Rust implementation of the Offset Codebook Mode v3 (OCB3) Authenticated Encryption with Associated Data (AEAD) cipher as described in RFC7253.
Example
use Aes128;
use ;
type Aes128Ocb3 = ;
let key = generate_key;
let cipher = new;
let nonce = generate_nonce;
let ciphertext = cipher.encrypt.unwrap;
let plaintext = cipher.decrypt.unwrap;
assert_eq!;
Security Notes
No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.
USE AT YOUR OWN RISK!
License
Licensed under either of:
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.