#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

7 unstable releases (3 breaking)

0.3.0 Jun 6, 2020
0.2.3 Nov 14, 2019
0.2.2 Oct 6, 2019
0.1.0 Sep 19, 2019
0.0.0 Oct 6, 2016

#2 in #aes-gcm

Download history 3187/week @ 2020-04-12 4536/week @ 2020-04-19 4965/week @ 2020-04-26 5785/week @ 2020-05-03 6725/week @ 2020-05-10 7017/week @ 2020-05-17 7384/week @ 2020-05-24 14422/week @ 2020-05-31 20208/week @ 2020-06-07 16803/week @ 2020-06-14 19107/week @ 2020-06-21 18804/week @ 2020-06-28 22195/week @ 2020-07-05 23286/week @ 2020-07-12 25508/week @ 2020-07-19 24721/week @ 2020-07-26

22,507 downloads per month
Used in 48 crates (2 directly)

MIT/Apache

36KB
478 lines

GHASH: fast universal hash function and MAC

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

~255KB