0ffc795efb
FIPS requires that the CTR-DRBG state be zeroed on process exit, however destructors for thread-local data aren't called when the process exits. This change maintains a linked-list of thread-local state which is walked on exit to zero each thread's PRNG state. Any concurrently running threads block until the process finishes exiting. Change-Id: Ie5dc18e1bb2941a569d8b309411cf20c9bdf52ef Reviewed-on: https://boringssl-review.googlesource.com/16764 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> |
||
---|---|---|
.. | ||
asm | ||
ctrdrbg_test.cc | ||
ctrdrbg_vector_test.cc | ||
ctrdrbg_vectors.txt | ||
ctrdrbg.c | ||
internal.h | ||
rand.c | ||
urandom.c |