#aead #aes #encryption #gcm #ghash

no-std aes-gcm

Pure Rust implementation of the AES-GCM (Galois/Counter Mode) Authenticated Encryption with Associated Data (AEAD) Cipher with optional architecture-specific hardware acceleration

15 unstable releases

0.9.4 Aug 28, 2021
0.9.3 Jul 20, 2021
0.9.2 May 31, 2021
0.8.0 Oct 16, 2020
0.3.0 Nov 27, 2019

#605 in Cryptography

Download history 52297/week @ 2021-05-29 58483/week @ 2021-06-05 56185/week @ 2021-06-12 53085/week @ 2021-06-19 50243/week @ 2021-06-26 60550/week @ 2021-07-03 57347/week @ 2021-07-10 59563/week @ 2021-07-17 61758/week @ 2021-07-24 68796/week @ 2021-07-31 58814/week @ 2021-08-07 59476/week @ 2021-08-14 67154/week @ 2021-08-21 68383/week @ 2021-08-28 65022/week @ 2021-09-04 78695/week @ 2021-09-11

253,218 downloads per month
Used in 204 crates (61 directly)

Apache-2.0 OR MIT

150KB
171 lines

RustCrypto: AES-GCM

crate Docs Apache2/MIT licensed Rust Version Project Chat Crates.io Downloads Build Status

Pure Rust implementation of the AES-GCM Authenticated Encryption with Associated Data (AEAD) cipher.

Documentation

Security Notes

This crate has received one security audit by NCC Group, with no significant findings. We would like to thank MobileCoin for funding the audit.

All implementations contained in the crate are designed to execute in constant time, either by relying on hardware intrinsics (i.e. AES-NI and CLMUL on x86/x86_64), or using a portable implementation which is only constant time on processors which implement constant-time multiplication.

It is not suitable for use on processors with a variable-time multiplication operation (e.g. short circuit on multiply-by-zero / multiply-by-one, such as certain 32-bit PowerPC CPUs and some non-ARM microcontrollers).

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

~700KB
~16K SLoC