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> |
||
---|---|---|
.. | ||
aes | ||
bn | ||
cipher | ||
des | ||
digest | ||
ec | ||
ecdsa | ||
hmac | ||
md4 | ||
md5 | ||
modes | ||
rand | ||
rsa | ||
sha | ||
bcm.c | ||
CMakeLists.txt | ||
delocate.h | ||
FIPS.md | ||
intcheck1.png | ||
intcheck2.png | ||
intcheck3.png | ||
is_fips.c |