#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

#1883 in Cryptography

Download history 495537/week @ 2024-08-04 493800/week @ 2024-08-11 473248/week @ 2024-08-18 501572/week @ 2024-08-25 495767/week @ 2024-09-01 476546/week @ 2024-09-08 445897/week @ 2024-09-15 495922/week @ 2024-09-22 497155/week @ 2024-09-29 516806/week @ 2024-10-06 514235/week @ 2024-10-13 553459/week @ 2024-10-20 510134/week @ 2024-10-27 510596/week @ 2024-11-03 514812/week @ 2024-11-10 508855/week @ 2024-11-17

2,068,994 downloads per month
Used in 2,973 crates (111 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