lib-q-duplex-aead
Duplex-sponge AEAD using Keccak-f[1600] (same permutation family as SHA-3). Rate 136 bytes, 256-bit key, 128-bit nonce, 256-bit tag.
Usage
use ;
use DuplexSpongeAead;
let aead = new;
let key = new;
let nonce = new;
let ct = aead.encrypt.unwrap;
let pt = aead.decrypt.unwrap;
Features
std— standard library (default withalloc)alloc— heap allocations (default)simd-avx2— optional AVX2 path on x86_64 (runtime detection viastd::archwhenstdis enabled); duplex single-session path remains scalar
Security
The permutation is NIST-standardized; the AEAD mode defined in this crate is custom. Obtain independent review before production deployment.
Part of the lib-Q workspace; pairs with lib-q-core AEAD traits.