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

XChaCha20Poly1305 #4

Merged
merged 1 commit into from
Aug 26, 2019
Merged

XChaCha20Poly1305 #4

merged 1 commit into from
Aug 26, 2019

Conversation

tarcieri
Copy link
Member

Adds support for XChaCha20Poly1305 AEAD: an extended 192-bit (24-byte) nonce variant of ChaCha20Poly1305 as described in:

https://tools.ietf.org/html/draft-arciszewski-xchacha-03

This variant is also implemented in libsodium and used by e.g. WireGuard.

Adds support for XChaCha20Poly1305 AEAD: an extended 192-bit (24-byte)
nonce variant of ChaCha20Poly1305 as described in:

https://tools.ietf.org/html/draft-arciszewski-xchacha-03

This variant is also implemented in libsodium and used by e.g.
WireGuard.
@tarcieri tarcieri requested a review from newpavlov August 25, 2019 21:14
@@ -0,0 +1,122 @@
//! Core AEAD cipher implementation for (X)ChaCha20Poly1305.

// TODO(tarcieri): make this reusable for (X)Salsa20Poly1305
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arguably the best way to do this is making it generic to all stream ciphers: RustCrypto/traits#45

@tarcieri tarcieri merged commit e85aabf into master Aug 26, 2019
@tarcieri tarcieri deleted the xchacha20poly1305 branch August 26, 2019 05:42
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