You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests 1, 2, 3, 6, and 7 fail. I suspect they behave differently with the
`avx2` backend since it depends on where the boundary of the buffer is.
I don't think it's easy to exploit this unless you're trying really
hard. That said, I believe it's possible for sufficiently determined
user code to bypass the MAX_BLOCKS check and generate looped/overflowed
keystream past 256GB.
I left the assert!() call that prevents more than 256GB of random number generation in. However, I'm not sure it's necessary, and it seems like the kind of panic that might cause problems downstream.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This:
Rounds-style tag trait for different possible values ofMAX_BLOCKScheck_data_lento an overflow-friendly version which can check 64-bit counters without requiring 128bit arithmeticChaCha20LegacyandXChaCha20.closesXChaCha20 unnecessarily limits keystream to 256gb #213