#data-integrity #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

16 releases

0.6.0-rc.0 Jul 26, 2024
0.6.0-pre.0 Mar 8, 2024
0.5.2 Apr 2, 2023
0.5.1 Aug 10, 2022
0.0.0 Oct 6, 2016

#1872 in Cryptography

Download history 481549/week @ 2024-07-20 453761/week @ 2024-07-27 491039/week @ 2024-08-03 495015/week @ 2024-08-10 474388/week @ 2024-08-17 500936/week @ 2024-08-24 491930/week @ 2024-08-31 479985/week @ 2024-09-07 447886/week @ 2024-09-14 491270/week @ 2024-09-21 496172/week @ 2024-09-28 519567/week @ 2024-10-05 514937/week @ 2024-10-12 553703/week @ 2024-10-19 509363/week @ 2024-10-26 507554/week @ 2024-11-02

2,166,467 downloads per month
Used in 2,942 crates (109 directly)

MIT/Apache

70KB
1.5K 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.

Documentation

Minimum Supported Rust Version

Rust 1.65 or higher.

Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.

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

~190–520KB
~12K SLoC