#aead #encryption #aes #aegis128l

no-std aegis

AEGIS authenticated ciphers (AEGIS-128, AEGIS-256, AEGIS-128X, AEGIS-256X)

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

Download history 14132/week @ 2025-09-28 13072/week @ 2025-10-05 13973/week @ 2025-10-12 13478/week @ 2025-10-19 14969/week @ 2025-10-26 11750/week @ 2025-11-02 11523/week @ 2025-11-09 16322/week @ 2025-11-16 17576/week @ 2025-11-23 20504/week @ 2025-11-30 19085/week @ 2025-12-07 23710/week @ 2025-12-14 11390/week @ 2025-12-21 11814/week @ 2025-12-28 11952/week @ 2026-01-04 14480/week @ 2026-01-11

51,638 downloads per month
Used in 33 crates (7 directly)

MIT license

1MB
13K SLoC

Rust 6.5K SLoC // 0.0% comments C 4.5K SLoC // 0.0% comments Zig 2K SLoC // 0.0% comments Python 69 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 the cc crate to take advantage of the implementations from libaegis. Setting this flag will substantially degrade performance and some features may not be available. When using the pure-rust implementation, adding RUSTFLAGS="-C target-cpu=native" to the environment variable prior to compiling the project is highly recommended for better performance.

  • rustcrypto-traits-06: add traits from rust-crypto/aead version 0.6. Alternative interfaces are available in the compat namespace.

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)

AEGIS benchmark results

Authentication (64 KB)

AEGIS-MAC benchmark results

Mobile benchmarks

AEGIS mobile benchmark results

Dependencies