Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chacha20poly1305: Add ChaCha8/ChaCha12 reduced round variants #69

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

tarcieri
Copy link
Member

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

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
@tarcieri tarcieri merged commit 509904c into master Jan 16, 2020
@tarcieri tarcieri deleted the reduced-round-variants branch January 16, 2020 19:22
@tarcieri tarcieri changed the title chacha20poly1305: Add ChaCha8/ChaCha20 reduced round variants chacha20poly1305: Add ChaCha8/ChaCha12 reduced round variants Jan 16, 2020
@tarcieri tarcieri mentioned this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant