FastRandomContext improvements and switch to ChaCha20#4987
Closed
nuttycom wants to merge 10 commits into
Closed
Conversation
str4d
changed the base branch from
master
to
backport/8173-siphash_node_eviction
February 16, 2021 12:21
Add full test vectors from spec, test per byte and per 8 bytes. Builds on #8086.
nuttycom
force-pushed
the
backport/8173-siphash_node_eviction
branch
from
February 17, 2021 01:07
7d71a23 to
eb526ea
Compare
Fixes a bug in which pop_back did not call the deleted item's destructor. Using the most general erase() implementation to implement all the others prevents similar bugs because the coupling between deallocation and destructor invocation only needs to be maintained in one place. Also reduces duplication of complex memmove logic. (cherry picked from commit 1e2c29f)
- add a swap operation to prevector tests (fails due to broken prevector::swap) - fix 2 prevector test operation conditions that were impossible (cherry picked from commit 4ed41a2)
swap was using an incorrect condition to determine when to apply an optimization (not swapping the full direct[] when swapping two indirect prevectors). Rather than correct the optimization I'm removing it for simplicity. Removing this optimization minutely improves performance in the typical (currently only) usage of member swap(), which is swapping with a freshly value-initialized object. (cherry picked from commit a7af72a)
(cherry picked from commit f71d4a3)
(cherry picked from commit e04326f)
(cherry picked from commit 1632922)
(cherry picked from commit 4fd2d2f)
nuttycom
force-pushed
the
backport/9792-fastrandom_chacha20
branch
from
February 17, 2021 01:12
19c3433 to
b2d985e
Compare
nuttycom
force-pushed
the
backport/8173-siphash_node_eviction
branch
from
February 17, 2021 15:07
eb526ea to
2f840b5
Compare
Contributor
|
☔ The latest upstream changes (presumably #4985) made this pull request unmergeable. Please resolve the merge conflicts. |
Contributor
|
Ugh, I do not understand GitHub's logic for closing PRs vs changing their base. It definitely triggers when the base branch is deleted, but maybe only PRs created from branches on this repo can have their bases changed? |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Backport of bitcoin/bitcoin#9792