openssl/providers
Dimitri John Ledkov 3b7bd871c1 drbg: provide requested amount of entropy, rather than self-strength
Parent DRBG can be seed source (os or jitter) and thus able to provide
unlimited entropy.

get_entropy is documented to provide at least the request amount of
entropy. If requested amount of entropy is same as, or less than
drbg->strength, everything is compliant. However, if requested entropy
is more than drbg->strength (unlikely, but possible), the returned
amount of entropy will be insufficient and additional repeated calls
to get_entropy will be required.

Reading history of refactors, it seems to me that this function call
previouslly had assumptions and usecases that couldn't ever request or
require more than strength amount of entropy.

If entropy is set, request that amount, otherwise request
drbg->strength amount.

Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/25850)
2025-01-14 12:12:02 +01:00
..
common Add utility function ossl_param_is_empty() 2024-10-09 11:13:46 +02:00
fips fips: change integrity check zeroization to use the OPENSSL_PEDANTIC_ZEROIZATION define 2024-11-28 15:13:35 +01:00
implementations drbg: provide requested amount of entropy, rather than self-strength 2025-01-14 12:12:02 +01:00
baseprov.c Copyright year updates 2024-09-05 09:35:49 +02:00
build.info first cut at KEM & key management skeletons 2024-10-21 11:47:16 +01:00
decoders.inc Copyright year updates 2023-09-07 09:59:15 +01:00
defltprov.c Copyright year updates 2024-09-05 09:35:49 +02:00
encoders.inc Copyright year updates 2023-09-07 09:59:15 +01:00
fips-sources.checksums make update 2024-09-05 09:37:42 +02:00
fips.checksum make update 2024-09-05 09:37:42 +02:00
fips.module.sources make update 2024-09-05 09:37:42 +02:00
legacyprov.c Copyright year updates 2023-09-07 09:59:15 +01:00
nullprov.c Copyright year updates 2023-09-07 09:59:15 +01:00
prov_running.c
stores.inc