#crypto #chacha20 #mac #salsa20 #universal-hashing

no-std poly1305

The Poly1305 universal hash function and message authentication code

15 unstable releases

0.7.2 Aug 27, 2021
0.7.1 Jul 20, 2021
0.7.0 Apr 29, 2021
0.6.2 Dec 10, 2020
0.0.0 Oct 6, 2016

#628 in Cryptography

Download history 22854/week @ 2021-05-30 25269/week @ 2021-06-06 24459/week @ 2021-06-13 22729/week @ 2021-06-20 20221/week @ 2021-06-27 24951/week @ 2021-07-04 22112/week @ 2021-07-11 26410/week @ 2021-07-18 24937/week @ 2021-07-25 28698/week @ 2021-08-01 23388/week @ 2021-08-08 25445/week @ 2021-08-15 31268/week @ 2021-08-22 31996/week @ 2021-08-29 28545/week @ 2021-09-05 38943/week @ 2021-09-12

106,464 downloads per month
Used in 253 crates (4 directly)

Apache-2.0 OR MIT

120KB
1.5K SLoC

RustCrypto: Poly1305

crate Docs Apache2/MIT licensed Rust Version Build Status

Poly1305 is a universal hash function which, when combined with a cipher, can be used as a Message Authentication Code (MAC).

In practice, Poly1305 is primarily combined with ciphers from the Salsa20 Family such as in ChaCha20Poly1305 and XSalsa20Poly1305 (a.k.a. NaCl crypto_secretbox).

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.

NOTE: the audit predates the AVX2 backend, which has not yet been audited.

All implementations contained in the crate are designed to execute in constant time, either by relying on hardware intrinsics (e.g. 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

~275KB