-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(X)ChaCha20/(X)ChaCha20-Poly1305: Do not copy plaintext to
dst_out
…
…before all needed keystream blocks are guaranteed to be produced (#309) * aead: Do not copy plaintext into dst_out before we know next keystream can be reliably produced (see #308) * nit * chacha20: Do not copy plaintext into dst_out before we know next keystream can be reliably produced (see #308) * chacha20: Add test for #308 * nit * nit * chacha20poly1305: Add P/A/C_MAX length checks for maximum values specified in RFC 8439 * xchacha20poly1305: Add length errors to docs refencing the new checks in chacha20poly1305:: * chacha20poly1305: Check A_MAX on open() * doc: Clarification on (X)ChaCha20-based constructions and their behaviour if dst_out is longer then input * clippy: Allow extreme comparisons for AD in AEAD
- Loading branch information
Showing
5 changed files
with
180 additions
and
17 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
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
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