Skip to content
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

as of intel spec rdrand needs >1022 calls for a guaranteed reseed, adjust accordingly #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

gebi
Copy link

@gebi gebi commented Jul 14, 2015

thx for your really nice implementation of rngd-rdrand!

I just fixed a minor thing, that as of intel's spec rdrand only guarantees a reseed after more than 1022 calls to rdrand.

// https://software.intel.com/en-us/articles/intel-digital-random-number-generator-drng-software-implementation-guide
//   "The DRBG autonomously decides when it needs to be reseeded to refresh the
//   random number pool in the buffer and is both unpredictable and transparent
//   to the RDRAND caller. An upper bound of 511 128-bit samples will be
//   generated per seed. That is, no more than 511*2=1022 sequential DRNG
//   random numbers will be generated from the same seed value."

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.

2 participants