openssl/crypto/rand
Bernd Edlinger c352bd07ed Fix seeding from random device w/o getrandom syscall
Use select to wait for /dev/random in readable state,
but do not actually read anything from /dev/random,
use /dev/urandom first.

Use linux define __NR_getrandom instead of the
glibc define SYS_getrandom, in case the kernel headers
are more current than the glibc headers.

Fixes #8215

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/8251)

(cherry picked from commit 38023b87f0)
2019-03-01 18:29:56 +01:00
..
build.info crypto/rand: rename drbg_rand.c to drbg_ctr.c 2018-01-04 11:47:30 +10:00
drbg_ctr.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:32:42 +02:00
drbg_lib.c Test: link drbgtest statically against libcrypto 2018-11-08 16:32:30 +01:00
rand_egd.c Update copyright year 2018-05-29 13:16:04 +01:00
rand_err.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:32:42 +02:00
rand_lcl.h Test: link drbgtest statically against libcrypto 2018-11-08 16:32:30 +01:00
rand_lib.c Fix issues with do_rand_init/rand_cleanup_int 2018-11-09 13:37:38 +01:00
rand_unix.c Fix seeding from random device w/o getrandom syscall 2019-03-01 18:29:56 +01:00
rand_vms.c VMS: only use the high precision on VMS v8.4 and up 2018-09-15 14:59:06 +02:00
rand_win.c crypto/rand: fix some style nit's 2018-10-10 14:02:45 +02:00
randfile.c randfile.c: fix a Coverity warning 2018-10-28 23:39:13 +01:00