Crates.io | polyval |
lib.rs | polyval |
version | 0.7.0-rc.0 |
source | src |
created_at | 2019-08-13 22:32:41.629643 |
updated_at | 2024-07-26 21:05:43.315869 |
description | POLYVAL is a GHASH-like universal hash over GF(2^128) useful for constructing a Message Authentication Code (MAC) |
homepage | |
repository | https://github.com/RustCrypto/universal-hashes |
max_upload_size | |
id | 156600 |
size | 67,137 |
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.
Universal hash functions have subtle security properties and using them correctly is difficult. See the toplevel README.md for more information.
USE AT YOUR OWN RISK!
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).
Licensed under either of:
at your option.
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.