boringssl/crypto/test
David Benjamin 632d1127df Add some RAND_bytes tests.
We're a far cry from the good old days when we just read from /dev/urandom
without any fuss...

In particular, the threading logic is slightly non-trivial and probably worth
some basic sanity checks. Also write a fork-safety test, and test the
fork-unsafe-buffering path.

The last one is less useful right now, since fork-unsafe-buffering is a no-op
with RDRAND enabled (although we do have an SDE bot...), but it's probably
worth exercising the code in
https://boringssl-review.googlesource.com/c/boringssl/+/31564.

Change-Id: I14b1fc5216f2a93183286aa9b35f5f2309107fb2
Reviewed-on: https://boringssl-review.googlesource.com/31684
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2018-09-06 23:54:57 +00:00
..
CMakeLists.txt Support symbol prefixes 2018-09-06 20:07:52 +00:00
file_test_gtest.cc
file_test.cc Add RSA-PSS tests from Wycheproof. 2018-08-10 18:26:00 +00:00
file_test.h Add RSA-PSS tests from Wycheproof. 2018-08-10 18:26:00 +00:00
gtest_main.cc Add some RAND_bytes tests. 2018-09-06 23:54:57 +00:00
gtest_main.h Add some RAND_bytes tests. 2018-09-06 23:54:57 +00:00
malloc.cc Don't build test/malloc.cc with TSAN. 2018-07-24 15:38:09 +00:00
test_util.cc Support the allocating case of i2d_ASN1_{BOOLEAN,OBJECT}. 2018-08-16 15:59:11 +00:00
test_util.h Support the allocating case of i2d_ASN1_{BOOLEAN,OBJECT}. 2018-08-16 15:59:11 +00:00
wycheproof_util.cc Add an ECDH Wycheproof driver. 2018-05-01 19:38:07 +00:00
wycheproof_util.h Add an ECDH Wycheproof driver. 2018-05-01 19:38:07 +00:00