Name Description Size
info.txt 46
stateful_rng.cpp We split the request into several requests to the underlying DRBG but pass the input to each invocation. It might be more sensible to only provide it for the first invocation, however between 2.0 and 2.15 HMAC_DRBG always provided it for all requests so retain that here. 4798
stateful_rng.h Inherited by RNGs which maintain in-process state, like HMAC_DRBG. On Unix these RNGs are vulnerable to problems with fork, where the RNG state is duplicated, and the parent and child process RNGs will produce identical output until one of them reseeds. Stateful_RNG reseeds itself whenever a fork is detected, or after a set number of bytes have been output. Not implemented by RNGs which access an external RNG, such as the system PRNG or a hardware RNG. 5682