#crypto #universal-hashing #aes-gcm-siv

no-std polyval

POLYVAL is a GHASH-like universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC)

11 releases

new 0.4.1 Sep 29, 2020
0.4.0 Jun 6, 2020
0.3.3 Dec 21, 2019
0.3.1 Nov 14, 2019

#55 in Cryptography

Download history 20374/week @ 2020-06-09 17828/week @ 2020-06-16 18328/week @ 2020-06-23 19829/week @ 2020-06-30 22111/week @ 2020-07-07 24780/week @ 2020-07-14 25613/week @ 2020-07-21 25601/week @ 2020-07-28 27564/week @ 2020-08-04 26563/week @ 2020-08-11 24844/week @ 2020-08-18 25912/week @ 2020-08-25 23514/week @ 2020-09-01 29651/week @ 2020-09-08 31078/week @ 2020-09-15 30330/week @ 2020-09-22

112,919 downloads per month
Used in 68 crates (2 directly)

Apache-2.0 OR MIT

26KB
419 lines

RustCrypto: POLYVAL

crate Docs Apache2/MIT licensed Rust Version Build Status

POLYVAL (RFC 8452) 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-SIV, however it is closely related to GHASH and therefore can also be used to implement AES-GCM at no cost to performance on little endian architectures.

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