Skip to content

Document how to reseed after an application-driven restore - #3884

Open
prasden wants to merge 4 commits into
aws:mainfrom
prasden:doc-rand-restore-guidance
Open

prasden wants to merge 4 commits into
aws:mainfrom
prasden:doc-rand-restore-guidance

Conversation

@prasden

@prasden prasden commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Context and motivation

AWS-LC detects a VM snapshot restore only through SysGenID. If an application restores its own process from a snapshot on a platform without SysGenID, each copy continues from the same DRBG state.

Description of changes

The RAND_bytes_with_user_prediction_resistance comment tells the application to call it after each restore, from every thread, with fresh OS entropy. The RAND_poll comment says that it is a no-op and does not reseed.

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.

@prasden
prasden marked this pull request as ready for review December 3, 2026 22:10
@prasden
prasden requested a review from a team as a code owner December 3, 2026 22:10
@prasden
prasden requested a review from torben-hansen December 3, 2026 22:11
Comment thread include/openssl/rand.h Resolved
Comment thread include/openssl/rand.h Resolved
Comment thread include/openssl/rand.h Resolved
Comment thread include/openssl/rand.h Resolved
@prasden
prasden requested a review from torben-hansen December 3, 2026 22:19
@prasden
prasden force-pushed the doc-rand-restore-guidance branch from 773081b to 41c9419 Compare December 3, 2026 22:20
@codecov-commenter

codecov-commenter commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.00%. Comparing base (6ec807d) to head (5dc5e38).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3884      +/-   ##
==========================================
+ Coverage   78.78%   79.00%   +0.21%     
==========================================
  Files         716      715       -1     
  Lines      135508   135399     -109     
  Branches    19530    19533       +3     
==========================================
+ Hits       106766   106970     +204     
+ Misses      27698    27383     -315     
- Partials     1044     1046       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

samuel40791765
samuel40791765 previously approved these changes Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

🔒 Security Review — View Report

Please review before merging.

Comment thread include/openssl/rand.h Resolved
Comment thread include/openssl/rand.h Resolved
Comment thread include/openssl/rand.h Resolved
@prasden
prasden enabled auto-merge (squash) December 4, 2026 19:57

This branch has not been deployed

No deployments
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.

5 participants