AEGIS for Rust
This is a Rust implementation of the AEGIS authenticated cipher, ported from the Zig standard library.
AEGIS is extremely fast on CPUs with AES acceleration, has a large nonce size, and is key committing.
Cargo flags
std: allow dynamic allocationsaes_crate: use theaescrate, which works on all platformsaesni: use an optimized implementation for x86 CPUs with AES extensions
std, aes_crate is the default.
In order to get decent code on x86 CPUs, you may want to set additional rustc flags prior to compiling that crate or a project using it:
A benchmark can be run that way: