openssl/crypto/rand
Dr. Matthias St. Pierre a08714e181 Revert the DEVRANDOM_WAIT feature
The DEVRANDOM_WAIT feature added a select() call to wait for the
`/dev/random` device to become readable before reading from the
`/dev/urandom` device. It was introduced in commit 38023b87f0
in order to mitigate the fact that the `/dev/urandom` device
does not block until the initial seeding of the kernel CSPRNG
has completed, contrary to the behaviour of the `getrandom()`
system call.

It turned out that this change had negative side effects on
performance which were not acceptable. After some discussion it
was decided to revert this feature and leave it up to the OS
resp. the platform maintainer to ensure a proper initialization
during early boot time.

Fixes #9078

This partially reverts commit 38023b87f0.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9084)
2019-06-09 09:48:49 +02:00
..
build.info Use vxRandLib for VxWorks7 2019-05-02 23:32:44 +02:00
drbg_ctr.c Reseeding without derivation function is not supported in FIPS mode. 2019-04-11 08:52:22 +10:00
drbg_hash.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
drbg_hmac.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
drbg_lib.c Move the rand_nonce_lock code into drbg_lib.c 2019-06-07 12:04:42 +01:00
rand_crng_test.c Make the rand_crng code OPENSSL_CTX aware 2019-06-07 12:04:34 +01:00
rand_egd.c Following the license change, modify the boilerplates in crypto/rand/ 2018-12-06 15:14:05 +01:00
rand_err.c Reseeding without derivation function is not supported in FIPS mode. 2019-04-11 08:52:22 +10:00
rand_lcl.h Make the rand_crng code OPENSSL_CTX aware 2019-06-07 12:04:34 +01:00
rand_lib.c Move the rand_nonce_lock code into drbg_lib.c 2019-06-07 12:04:42 +01:00
rand_unix.c Revert the DEVRANDOM_WAIT feature 2019-06-09 09:48:49 +02:00
rand_vms.c Clear seed source structures. 2019-03-29 20:11:41 +10:00
rand_vxworks.c Use vxRandLib for VxWorks7 2019-05-02 23:32:44 +02:00
rand_win.c Revert "crypto/rand/rand_win.c: include "e_os.h" to get the default _WIN32_WINNT" 2019-04-02 14:49:54 +02:00
randfile.c Circumvent a problem of lacking GetEnvironmentVariable() in WindowsCE. 2019-03-29 09:51:24 +00:00