openssl/crypto/rand
Dr. Matthias St. Pierre 6ec6448b93 RAND_load_file(): avoid adding small chunks to RAND_add()
Increase the load buffer size such that it exceeds the chunk
size by a comfortable amount. This is done to avoid calling
RAND_add() with a small final chunk. Instead, such a small
final chunk will be added together with the previous chunk
(unless it's the only one).

Related-to: #7449

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/7456)
2018-10-26 08:38:08 +02:00
..
build.info Added DRBG_HMAC & DRBG_HASH + Added defaults for setting DRBG for master/public/private + renamed generate_counter back to reseed_counter + generated new cavs data tests 2018-09-28 07:22:13 +10:00
drbg_ctr.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:15:43 +02:00
drbg_hash.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:15:43 +02:00
drbg_hmac.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:15:43 +02:00
drbg_lib.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:15:43 +02: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:15:43 +02:00
rand_lcl.h RAND: ensure INT32_MAX is defined 2018-10-23 10:56:07 +02:00
rand_lib.c RAND_add(): fix heap corruption in error path 2018-10-22 14:54:55 +02:00
rand_unix.c DRBG: fix reseeding via RAND_add()/RAND_seed() with large input 2018-10-16 22:15:43 +02:00
rand_vms.c VMS: only use the high precision on VMS v8.4 and up 2018-09-15 15:44:45 +02:00
rand_win.c crypto/rand: fix some style nit's 2018-10-10 14:00:43 +02:00
randfile.c RAND_load_file(): avoid adding small chunks to RAND_add() 2018-10-26 08:38:08 +02:00