#authenticated-encryption #aead #encryption #aes #gcm

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

25 releases

0.11.0-pre.2 Oct 7, 2024
0.11.0-pre.1 Jul 27, 2024
0.10.3 Sep 21, 2023
0.10.2 May 20, 2023
0.3.0 Nov 27, 2019

#1483 in Cryptography

Download history 347818/week @ 2024-07-18 354284/week @ 2024-07-25 327592/week @ 2024-08-01 383480/week @ 2024-08-08 354960/week @ 2024-08-15 367441/week @ 2024-08-22 362159/week @ 2024-08-29 378677/week @ 2024-09-05 356095/week @ 2024-09-12 353882/week @ 2024-09-19 377626/week @ 2024-09-26 394469/week @ 2024-10-03 374909/week @ 2024-10-10 412421/week @ 2024-10-17 388009/week @ 2024-10-24 362186/week @ 2024-10-31

1,615,953 downloads per month
Used in 1,331 crates (321 directly)

Apache-2.0 OR MIT

150KB
201 lines

RustCrypto: AES-GCM

crate Docs Apache2/MIT licensed Rust Version Project Chat 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

~0.7–1MB
~21K SLoC