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

no-std aes-gcm-siv

Pure Rust implementation of the AES-GCM-SIV Misuse-Resistant Authenticated Encryption Cipher (RFC 8452) with optional architecture-specific hardware acceleration

19 unstable releases

0.12.0-pre.2 Oct 7, 2024
0.12.0-pre.1 Jul 27, 2024
0.11.1 Aug 1, 2022
0.11.0-pre.2 Jul 20, 2022
0.3.0 Nov 27, 2019

#1159 in Cryptography

Download history 51925/week @ 2024-07-17 53691/week @ 2024-07-24 70987/week @ 2024-07-31 66742/week @ 2024-08-07 59638/week @ 2024-08-14 67870/week @ 2024-08-21 64723/week @ 2024-08-28 68479/week @ 2024-09-04 56290/week @ 2024-09-11 52209/week @ 2024-09-18 64224/week @ 2024-09-25 67080/week @ 2024-10-02 60725/week @ 2024-10-09 76937/week @ 2024-10-16 82630/week @ 2024-10-23 81358/week @ 2024-10-30

312,372 downloads per month
Used in 887 crates (59 directly)

MIT/Apache

27KB
198 lines

RustCrypto: AES-GCM-SIV (Misuse-Resistant Authenticated Encryption Cipher)

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

AES-GCM-SIV (RFC 8452) is a state-of-the-art high-performance Authenticated Encryption with Associated Data (AEAD) cipher which also provides nonce reuse misuse resistance.

Suitable as a general purpose symmetric encryption cipher, AES-GCM-SIV also removes many of the "sharp edges" of AES-GCM, providing significantly better security bounds while simultaneously eliminating the most catastrophic risks of nonce reuse that exist in AES-GCM.

Decryption performance is equivalent to AES-GCM. Encryption is marginally slower.

See also:

Documentation

Security Warning

No security audits of this crate have ever been performed.

Some of this crate's dependencies were audited by by NCC Group as part of an audit of the aes-gcm crate, including the AES implementations (both AES-NI and a portable software implementation), as well as the polyval crate which is used as an authenticator. There were no significant findings.

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).

USE AT YOUR OWN RISK!

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
~22K SLoC