From ce27133708daf4eea71162af831216d2fe84b040 Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 4 Sep 2024 09:42:52 +1000 Subject: [PATCH] Add failed entropy continuous test error Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25415) --- crypto/err/openssl.txt | 2 ++ include/openssl/proverr.h | 1 + providers/common/provider_err.c | 2 ++ 3 files changed, 5 insertions(+) diff --git a/crypto/err/openssl.txt b/crypto/err/openssl.txt index 9b24e77a017..404be7517af 100644 --- a/crypto/err/openssl.txt +++ b/crypto/err/openssl.txt @@ -1041,6 +1041,8 @@ PROV_R_COFACTOR_REQUIRED:236:cofactor required PROV_R_DERIVATION_FUNCTION_INIT_FAILED:205:derivation function init failed PROV_R_DIGEST_NOT_ALLOWED:174:digest not allowed PROV_R_EMS_NOT_ENABLED:233:ems not enabled +PROV_R_ENTROPY_SOURCE_FAILED_CONTINUOUS_TESTS:244:\ + entropy source failed continuous tests PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK:186:entropy source strength too weak PROV_R_ERROR_INSTANTIATING_DRBG:188:error instantiating drbg PROV_R_ERROR_RETRIEVING_ENTROPY:189:error retrieving entropy diff --git a/include/openssl/proverr.h b/include/openssl/proverr.h index c5ce438b060..d10b653152e 100644 --- a/include/openssl/proverr.h +++ b/include/openssl/proverr.h @@ -34,6 +34,7 @@ # define PROV_R_DERIVATION_FUNCTION_INIT_FAILED 205 # define PROV_R_DIGEST_NOT_ALLOWED 174 # define PROV_R_EMS_NOT_ENABLED 233 +# define PROV_R_ENTROPY_SOURCE_FAILED_CONTINUOUS_TESTS 244 # define PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK 186 # define PROV_R_ERROR_INSTANTIATING_DRBG 188 # define PROV_R_ERROR_RETRIEVING_ENTROPY 189 diff --git a/providers/common/provider_err.c b/providers/common/provider_err.c index 8a4f7b1db0f..df4bab0966d 100644 --- a/providers/common/provider_err.c +++ b/providers/common/provider_err.c @@ -35,6 +35,8 @@ static const ERR_STRING_DATA PROV_str_reasons[] = { {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_DIGEST_NOT_ALLOWED), "digest not allowed"}, {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_EMS_NOT_ENABLED), "ems not enabled"}, + {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ENTROPY_SOURCE_FAILED_CONTINUOUS_TESTS), + "entropy source failed continuous tests"}, {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ENTROPY_SOURCE_STRENGTH_TOO_WEAK), "entropy source strength too weak"}, {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_ERROR_INSTANTIATING_DRBG), -- 2.47.2