#crypto #encryption

no-std aead

Traits for Authenticated Encryption with Associated Data (AEAD) algorithms

4 releases (2 breaking)

✓ Uses Rust 2018 edition

0.2.0 Nov 18, 2019
0.1.2 Nov 17, 2019
0.1.1 Aug 30, 2019
0.1.0 Aug 29, 2019
0.0.0 Oct 6, 2016

#13 in #encryption

Download history 2268/week @ 2020-02-06 1425/week @ 2020-02-13 1873/week @ 2020-02-20 2187/week @ 2020-02-27 2925/week @ 2020-03-05 3949/week @ 2020-03-12 4696/week @ 2020-03-19 5304/week @ 2020-03-26 4829/week @ 2020-04-02 5429/week @ 2020-04-09 6623/week @ 2020-04-16 7541/week @ 2020-04-23 7874/week @ 2020-04-30 9364/week @ 2020-05-07 9532/week @ 2020-05-14 8261/week @ 2020-05-21

14,686 downloads per month
Used in 40 crates (19 directly)

MIT/Apache

18KB
240 lines

Authenticated Encryption with Additional Data

This crate provides the rust trait equivilent of the AEAD API defined in RFC5116. As a result, it should provide nearly drop-in support for any compliant AEAD scheme, including AES-GCM, AES-CCM, ChaCha20-Poly1305, AES-CBC-HMAC, etc.


lib.rs:

Authenticated Encryption with Associated Data (AEAD) traits

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.

Dependencies

~180–290KB