From: Dmitry Belyavskiy Date: Thu, 29 May 2025 11:38:29 +0000 (+0200) Subject: Cleanup - this constant and functions are no longer in use X-Git-Tag: openssl-3.5.1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e3a5719de5305284f0239297562b4a31226477c;p=thirdparty%2Fopenssl.git Cleanup - this constant and functions are no longer in use Reviewed-by: Saša Nedvědický Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27716) (cherry picked from commit 0b968a3572d2932e7e756fc9977dbf808510a958) --- diff --git a/providers/implementations/rands/drbg_local.h b/providers/implementations/rands/drbg_local.h index e591e0b3d18..5fac273b990 100644 --- a/providers/implementations/rands/drbg_local.h +++ b/providers/implementations/rands/drbg_local.h @@ -31,16 +31,6 @@ # define RESEED_INTERVAL (1 << 8) # define TIME_INTERVAL (60*60) /* 1 hour */ -/* - * The number of bytes that constitutes an atomic lump of entropy with respect - * to the FIPS 140-2 section 4.9.2 Conditional Tests. The size is somewhat - * arbitrary, the smaller the value, the less entropy is consumed on first - * read but the higher the probability of the test failing by accident. - * - * The value is in bytes. - */ -#define CRNGT_BUFSIZ 16 - /* * Maximum input size for the DRBG (entropy, nonce, personalization string) * @@ -247,14 +237,6 @@ int ossl_drbg_set_ctx_params(PROV_DRBG *drbg, const OSSL_PARAM params[]); OSSL_PARAM_uint(OSSL_DRBG_PARAM_RESEED_REQUESTS, NULL), \ OSSL_PARAM_uint64(OSSL_DRBG_PARAM_RESEED_TIME_INTERVAL, NULL) -/* Continuous test "entropy" calls */ -size_t ossl_crngt_get_entropy(PROV_DRBG *drbg, - unsigned char **pout, - int entropy, size_t min_len, size_t max_len, - int prediction_resistance); -void ossl_crngt_cleanup_entropy(PROV_DRBG *drbg, - unsigned char *out, size_t outlen); - /* Confirm digest is allowed to be used with a DRBG */ int ossl_drbg_verify_digest(PROV_DRBG *drbg, OSSL_LIB_CTX *libctx, const EVP_MD *md);