openssl/providers/implementations/rands
afshinpir 6d45fd47f4 Segmentation fault in parent rng cleanup
CLA: trivial
When `cleanup_entropy()` is called to cleanup parent by calling
provided `OSSL_FUNC_rand_clear_seed_fn` method, incorrect random
context is passed to the method. So accessing that context creates
a segmentation fault. Parent context should be passed rather than
DRBG's own context.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20454)
2023-03-15 08:30:41 +11:00
..
seeding remove extra define for __NR_getrandom and add some comments 2023-01-06 06:41:13 +00:00
build.info Drop libimplementations.a 2021-05-07 10:17:23 +02:00
crngt.c Update copyright year 2022-05-03 13:34:51 +01:00
drbg_ctr.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
drbg_hash.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
drbg_hmac.c Implement deterministic ECDSA sign (RFC6979) 2022-11-30 07:31:53 +00:00
drbg_local.h Implement deterministic ECDSA sign (RFC6979) 2022-11-30 07:31:53 +00:00
drbg.c Segmentation fault in parent rng cleanup 2023-03-15 08:30:41 +11:00
seed_src.c Stop raising ERR_R_MALLOC_FAILURE in most places 2022-10-05 14:02:03 +02:00
test_rng.c test-rand: return failure on not enough data, allow parent 2021-10-26 20:02:55 +10:00