openssl/providers/implementations/rands
Pauli d4dfd983e3 test-rand: return failure on not enough data, allow parent
The test-rand RNG was returning success when it had some but insufficient data.
Now, it returns failure and doesn't advance the data pointer.

The test-rand RNG was failing when a parent was specified.  This case is now
ignored.

Fixes #16785

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16905)
2021-10-26 20:02:55 +10:00
..
seeding VMS: Compensate for x86_64 cross compiler type incompatibility 2021-09-03 11:22:33 +02:00
build.info Drop libimplementations.a 2021-05-07 10:17:23 +02:00
crngt.c Update copyright year 2021-05-20 14:22:33 +01:00
drbg_ctr.c drbg: allow the ctr derivation function to be disabled in FIPS mode 2021-07-20 18:34:07 +10:00
drbg_hash.c Rename all getters to use get/get0 in name 2021-06-01 12:40:00 +02:00
drbg_hmac.c Rename all getters to use get/get0 in name 2021-06-01 12:40:00 +02:00
drbg_local.h Update copyright year 2021-02-18 15:05:17 +00:00
drbg.c rand: don't free an mis-set pointer on error 2021-09-22 18:01:12 +10:00
seed_src.c Avoid double-free on unsuccessful getting PRNG seeding 2021-09-21 18:37:14 +02:00
test_rng.c test-rand: return failure on not enough data, allow parent 2021-10-26 20:02:55 +10:00