]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Cleanup - this constant and functions are no longer in use
authorDmitry Belyavskiy <beldmit@gmail.com>
Thu, 29 May 2025 11:38:29 +0000 (13:38 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 30 May 2025 16:14:13 +0000 (18:14 +0200)
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27716)

providers/implementations/rands/drbg_local.h

index e591e0b3d18e226a37441e86a7e53b098fb8e1bb..5fac273b990b6be5137437d066a0b31047de1854 100644 (file)
 # 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);