boringssl/crypto
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
..
asn1 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
base64 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
bio Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
bn_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
buf Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
bytestring Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
chacha Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
cipher_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
cmac Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
conf Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
curve25519 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
dh Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
digest_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
dsa Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
ec_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
ecdh_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
ecdsa_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
engine Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
err Support symbol prefixes 2018-09-06 20:07:52 +00:00
evp Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
fipsmodule Support symbol prefixes 2018-09-06 20:07:52 +00:00
hkdf Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
hmac_extra Convert a number of tests to GTest. 2017-06-01 17:02:13 +00:00
lhash Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
obj Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
pem Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
perlasm Support symbol prefixes 2018-09-06 20:07:52 +00:00
pkcs7 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
pkcs8 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
poly1305 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
pool Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
rand_extra Add some RAND_bytes tests. 2018-09-06 23:54:57 +00:00
rc4 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
rsa_extra Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
stack Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
test Add some RAND_bytes tests. 2018-09-06 23:54:57 +00:00
x509 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
x509v3 Flatten most of the crypto target. 2018-09-05 23:41:25 +00:00
CMakeLists.txt Add some RAND_bytes tests. 2018-09-06 23:54:57 +00:00
compiler_test.cc Test that nullptr has the obvious memory representation. 2017-07-28 17:39:28 +00:00
constant_time_test.cc Add a test for CRYPTO_memcmp. 2018-03-27 16:22:47 +00:00
cpu-aarch64-fuchsia.c Add cpu-aarch64-fuchsia.c 2018-02-13 20:12:47 +00:00
cpu-aarch64-linux.c Add cpu-aarch64-fuchsia.c 2018-02-13 20:12:47 +00:00
cpu-arm-linux_test.cc Fix GCC (8.2.1) build error. 2018-09-06 15:38:11 +00:00
cpu-arm-linux.c Fix corner case in cpuinfo parser. 2018-09-05 00:00:14 +00:00
cpu-arm-linux.h Fix corner case in cpuinfo parser. 2018-09-05 00:00:14 +00:00
cpu-arm.c
cpu-intel.c Change OPENSSL_cpuid_setup to reserve more extended feature space. 2018-04-19 20:48:58 +00:00
cpu-ppc64le.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
crypto.c Add a pile of compatibility functions. 2018-08-13 23:13:26 +00:00
ex_data.c Unexport more of lhash. 2017-10-25 04:17:18 +00:00
internal.h Support symbol prefixes 2018-09-06 20:07:52 +00:00
mem.c Remove unused string.h include. 2018-04-24 17:42:39 +00:00
refcount_c11.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
refcount_lock.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
refcount_test.cc Add a basic TSan test for ref-counts. 2018-07-23 18:57:19 +00:00
self_test.cc Extract FIPS KAT tests into a function. 2018-01-22 20:16:38 +00:00
thread_none.c Run the comment converter on libcrypto. 2017-08-18 21:49:04 +00:00
thread_pthread.c Delete |pthread_key_t| on dlclose. 2018-02-20 19:53:24 +00:00
thread_test.cc Use std::thread in thread_test.cc. 2018-06-04 17:32:48 +00:00
thread_win.c Reland "Fix bssl client/server's error-handling." 2018-05-07 17:19:59 +00:00
thread.c