#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

#1826 in Cryptography

Download history 451745/week @ 2024-07-16 480735/week @ 2024-07-23 450846/week @ 2024-07-30 504705/week @ 2024-08-06 485407/week @ 2024-08-13 470020/week @ 2024-08-20 491925/week @ 2024-08-27 512667/week @ 2024-09-03 471326/week @ 2024-09-10 445527/week @ 2024-09-17 496322/week @ 2024-09-24 510590/week @ 2024-10-01 497723/week @ 2024-10-08 535909/week @ 2024-10-15 547781/week @ 2024-10-22 417402/week @ 2024-10-29

2,094,703 downloads per month
Used in 2,925 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

~195–520KB
~12K SLoC