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

9 unstable releases (3 breaking)

✓ Uses Rust 2018 edition

0.3.3 Dec 21, 2019
0.3.2 Dec 5, 2019
0.3.1 Nov 14, 2019
0.3.0 Oct 5, 2019
0.0.1 Aug 26, 2019

#124 in Cryptography

Download history 920/week @ 2019-11-01 999/week @ 2019-11-08 1304/week @ 2019-11-15 1775/week @ 2019-11-22 2282/week @ 2019-11-29 2838/week @ 2019-12-06 2503/week @ 2019-12-13 955/week @ 2019-12-20 943/week @ 2019-12-27 1485/week @ 2020-01-03 2212/week @ 2020-01-10 1727/week @ 2020-01-17 1527/week @ 2020-01-24 1172/week @ 2020-01-31 1289/week @ 2020-02-07

5,371 downloads per month
Used in 10 crates (2 directly)

MIT/Apache

27KB
414 lines

POLYVAL: fast universal hash function and MAC

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 Warning

No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.

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

~220KB