#authenticated-encryption #aead #encryption

no-std aegis

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

33 releases

new 0.6.12 Nov 5, 2024
0.6.7 Sep 23, 2024
0.6.6 Jun 10, 2024
0.6.2 Nov 30, 2023
0.2.2 Oct 20, 2021

#1158 in Cryptography

Download history 11/week @ 2024-07-15 68/week @ 2024-07-22 31/week @ 2024-07-29 29/week @ 2024-08-05 44/week @ 2024-08-12 12/week @ 2024-08-19 32/week @ 2024-08-26 37/week @ 2024-09-02 71/week @ 2024-09-09 32/week @ 2024-09-16 264/week @ 2024-09-23 48/week @ 2024-09-30 38/week @ 2024-10-07 30/week @ 2024-10-14 343/week @ 2024-10-21 307/week @ 2024-10-28

728 downloads per month
Used in 3 crates

MIT license

1MB
8K SLoC

C 4.5K SLoC // 0.0% comments Rust 3K SLoC Zig 1K SLoC // 0.0% comments

Contains (static library, 145KB) 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 parallel variants will not be available.

  • 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