Secure Randomness, Seeding, and State

Distinguish statistical appearance from unpredictability and account for process duplication or recording of generator state.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A generator extends a secret seed
  2. Copies of state require their own handling

A generator extends a secret seed

A cryptographic generator uses state derived from entropy to produce outputs intended to be unpredictable to bounded observers. Producing additional bytes does not add independent entropy to that state. A stream can pass frequency tests and still be predictable if the seed is known or drawn from a very small set. Use the operating system’s documented generator for key material and follow the specified readiness and error contract.

Copies of state require their own handling

If two processes continue from identical generator state, they can generate identical outputs until state is differentiated. This matters for cloned execution environments and protocols relying on fresh values. Reusing saved deterministic test seeds is useful for reproducibility, but those seeds serve a different purpose. Security games specify the unpredictability assumption, and nonce uniqueness can require coordination in addition to suitable randomness.[1]

References

  1. Dan Boneh and Victor Shoup, A Graduate Course in Applied Cryptography ↩