1#![no_std]
2#![doc = include_str!("../README.md")]
3
4mod aead_impl;
5mod gimli;
6mod hash_impl;
7
8mod rustcrypto_aead;
9mod rustcrypto_hash;
10
11pub use aead_impl::{AuthenticationFailed, Tag, decrypt_in_place, encrypt_in_place};
12pub use hash_impl::{HASH_SIZE, Hasher, hash};
13pub use rustcrypto_aead::GimliAead;
14pub use rustcrypto_hash::GimliHash;
15
16pub use aead::{self, AeadInPlace, KeyInit}; pub use digest::{self, Digest, Update}; const STATE_SIZE: usize = 48;
21
22pub const NONCE_SIZE: usize = 16;
24
25pub const KEY_SIZE: usize = 32;
27
28pub const TAG_SIZE: usize = 16;
30
31const RATE: usize = 16;
33
34const STATE_LAST_BYTE: usize = STATE_SIZE - 1;