#aes-gcm #crypto #universal-hashing

no-std ghash

Universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC), as in the AES-GCM authenticated encryption cipher

17 releases

Uses new Rust 2021

0.5.0 Jul 31, 2022
0.4.4 Aug 28, 2021
0.4.3 Jul 20, 2021
0.3.1 Dec 26, 2020
0.0.0 Oct 6, 2016

#1042 in Cryptography

Download history 135826/week @ 2022-08-15 140321/week @ 2022-08-22 137103/week @ 2022-08-29 132189/week @ 2022-09-05 132651/week @ 2022-09-12 140772/week @ 2022-09-19 141282/week @ 2022-09-26 151793/week @ 2022-10-03 150083/week @ 2022-10-10 162110/week @ 2022-10-17 166997/week @ 2022-10-24 160331/week @ 2022-10-31 178151/week @ 2022-11-07 182599/week @ 2022-11-14 161856/week @ 2022-11-21 181536/week @ 2022-11-28

713,912 downloads per month
Used in 419 crates (4 directly)

Apache-2.0 OR MIT

53KB
925 lines

RustCrypto: GHASH

crate Docs Apache2/MIT licensed Rust Version Build Status

GHASH is a universal hash function which operates over GF(2^128) and can be used for constructing a Message Authentication Code (MAC).

Its primary intended use is for implementing AES-GCM.

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

~290KB