-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chacha20poly1305: Add ChaCha8/ChaCha20 reduced round variants
Adds `ChaCha8Poly1305` and `ChaCha12Poly1305` AEADs, gated under the (off-by-default) `reduced-round` cargo feature. See the writeup I've already done for the `rand_chacha` crate for the rationale of including these by default: rust-random/rand#932 tl;dr: the "Too Much Crypto" paper goes into why ChaCha20 is overkill, ChaCha12 is probably what should've been standardized per the eSTREAM analysis of Salsa20 (but wasn't for cargo cult reasons), and ChaCha8 is still probably safe: https://eprint.iacr.org/2019/1492
- Loading branch information
Showing
2 changed files
with
94 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters