#encryption

no-std aead

Traits for Authenticated Encryption with Associated Data (AEAD) algorithms, such as AES-GCM as ChaCha20Poly1305, which provide a high-level API

21 releases

Uses new Rust 2024

new 0.6.0-rc.5 Dec 27, 2025
0.6.0-rc.3 Nov 5, 2025
0.6.0-rc.1 May 29, 2025
0.6.0-rc.0 Jul 26, 2024
0.0.0 Oct 6, 2016

#2404 in Cryptography

Download history 1115013/week @ 2025-09-11 1060274/week @ 2025-09-18 1149318/week @ 2025-09-25 1098444/week @ 2025-10-02 1071714/week @ 2025-10-09 1097169/week @ 2025-10-16 1200803/week @ 2025-10-23 1240124/week @ 2025-10-30 1295895/week @ 2025-11-06 1290402/week @ 2025-11-13 1300457/week @ 2025-11-20 1074937/week @ 2025-11-27 1394431/week @ 2025-12-04 863497/week @ 2025-12-11

2,481,260 downloads per month
Used in 5,350 crates (153 directly)

MIT/Apache

55KB
1K SLoC

RustCrypto: Authenticated Encryption with Additional Data Traits

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

This crate provides an abstract interface for AEAD ciphers, which guarantee both confidentiality and integrity, even from a powerful attacker who is able to execute chosen-ciphertext attacks. The resulting security property, ciphertext indistinguishability, is considered a basic requirement for modern cryptographic implementations.

See RustCrypto/AEADs for cipher implementations which use this trait.

SemVer Policy

  • All on-by-default features of this library are covered by SemVer
  • MSRV is considered exempt from SemVer as noted above

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–0.8MB
~20K SLoC