From: Pauli Date: Tue, 3 Sep 2024 23:42:52 +0000 (+1000) Subject: Add failed entropy continuous test error X-Git-Tag: openssl-3.4.0-beta1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f27f1a54a3ac151e294a583146f882943daea26;p=thirdparty%2Fopenssl.git Add failed entropy continuous test error Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25526) --- 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),