8000 Make sure reseed interval constants are meaningful for the tree-DRBG and add test to assert reseed interval by torben-hansen · Pull Request #2468 · aws/aws-lc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make sure reseed interval constants are meaningful for the tree-DRBG and add test to assert reseed interval #2468

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

Conversation

torben-hansen
Copy link
Contributor

Description of changes:

TREE_JITTER_{GLOBAL,THREAD}_DRBG_MAX_GENERATE where previously equal to the max value - 1. This was not totally clear. The thread should allow 2^20 generate calls and the global 2^24 generate calls. Due to the -1, only 2^20-1 and 2^24-1 is allowed because the drbg.reseed_counter is initialized to 1, and that's the counter used to perform the interval check.

Add a unit test that verifies that the (thread) counter now allows 2^20. The same condition logic is used for the global, which in turn, is covered by the test and should allow 2^24.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@torben-hansen torben-hansen requested a review from a team as a code owner June 5, 2025 18:34
@torben-hansen torben-hansen enabled auto-merge (squash) June 5, 2025 18:49
@torben-hansen torben-hansen merged commit 1bdf17e into aws:randomness_generation Jun 5, 2025
1 of 58 checks passed
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.

3 participants
0