45 releases
| 0.9.7 | Dec 27, 2025 |
|---|---|
| 0.9.5 | Nov 24, 2025 |
| 0.9.0 | Feb 17, 2025 |
| 0.8.0 | Dec 11, 2024 |
| 0.2.2 | Oct 20, 2021 |
#796 in Cryptography
51,638 downloads per month
Used in 33 crates
(7 directly)
1MB
13K
SLoC
Contains (static library, 225KB) wasm-libs/libaegis.a
AEGIS for Rust
This is a Rust implementation of AEGIS.
AEGIS is a new family of authenticated encryption algorithms, offering high security and exceptional performance on modern desktop, server, and mobile CPUs.
API documentation
Cargo flags
-
std: allow dynamic allocations. This is the default. -
pure-rust: don't use thecccrate to take advantage of the implementations fromlibaegis. Setting this flag will substantially degrade performance and some features may not be available. When using the pure-rust implementation, addingRUSTFLAGS="-C target-cpu=native"to the environment variable prior to compiling the project is highly recommended for better performance. -
rustcrypto-traits-06: add traits fromrust-crypto/aeadversion 0.6. Alternative interfaces are available in thecompatnamespace.
Benchmarks
AEGIS is very fast on CPUs with parallel execution pipelines and AES support.
Benchmarks can be reproduced using export CC="clang -O3 -march=native" and the cargo bench or cargo-zigbuild bench commands.
For performance, clang is recommended over gcc.
Encryption (16 KB)

Authentication (64 KB)

Mobile benchmarks
