From 3134fb284fe632424ee3bd380c4bf95342aa00fd Mon Sep 17 00:00:00 2001 From: Pauli Date: Wed, 26 May 2021 10:02:09 +1000 Subject: [PATCH] errors: update error message (to be squashed) Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/15472) --- crypto/err/openssl.txt | 2 ++ crypto/rsa/rsa_err.c | 4 +++- include/crypto/rsaerr.h | 2 +- include/openssl/rsaerr.h | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/crypto/err/openssl.txt b/crypto/err/openssl.txt index 3e9bfc1acf..48d1175bce 100644 --- a/crypto/err/openssl.txt +++ b/crypto/err/openssl.txt @@ -1190,6 +1190,8 @@ RSA_R_PSS_SALTLEN_TOO_SMALL:164:pss saltlen too small RSA_R_PUB_EXPONENT_OUT_OF_RANGE:178:pub exponent out of range RSA_R_P_NOT_PRIME:128:p not prime RSA_R_Q_NOT_PRIME:129:q not prime +RSA_R_RANDOMNESS_SOURCE_STRENGTH_INSUFFICIENT:180:\ + randomness source strength insufficient RSA_R_RSA_OPERATIONS_NOT_SUPPORTED:130:rsa operations not supported RSA_R_SLEN_CHECK_FAILED:136:salt length check failed RSA_R_SLEN_RECOVERY_FAILED:135:salt length recovery failed diff --git a/crypto/rsa/rsa_err.c b/crypto/rsa/rsa_err.c index 1e3c81ff5e..85bee965fc 100644 --- a/crypto/rsa/rsa_err.c +++ b/crypto/rsa/rsa_err.c @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -118,6 +118,8 @@ static const ERR_STRING_DATA RSA_str_reasons[] = { "pub exponent out of range"}, {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_P_NOT_PRIME), "p not prime"}, {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_Q_NOT_PRIME), "q not prime"}, + {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_RANDOMNESS_SOURCE_STRENGTH_INSUFFICIENT), + "randomness source strength insufficient"}, {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_RSA_OPERATIONS_NOT_SUPPORTED), "rsa operations not supported"}, {ERR_PACK(ERR_LIB_RSA, 0, RSA_R_SLEN_CHECK_FAILED), diff --git a/include/crypto/rsaerr.h b/include/crypto/rsaerr.h index 43541b7faf..9b23500b37 100644 --- a/include/crypto/rsaerr.h +++ b/include/crypto/rsaerr.h @@ -1,6 +1,6 @@ /* * Generated by util/mkerr.pl DO NOT EDIT - * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy diff --git a/include/openssl/rsaerr.h b/include/openssl/rsaerr.h index bc31d2fe65..4335f1cb33 100644 --- a/include/openssl/rsaerr.h +++ b/include/openssl/rsaerr.h @@ -85,6 +85,7 @@ # define RSA_R_PUB_EXPONENT_OUT_OF_RANGE 178 # define RSA_R_P_NOT_PRIME 128 # define RSA_R_Q_NOT_PRIME 129 +# define RSA_R_RANDOMNESS_SOURCE_STRENGTH_INSUFFICIENT 180 # define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED 130 # define RSA_R_SLEN_CHECK_FAILED 136 # define RSA_R_SLEN_RECOVERY_FAILED 135 -- 2.39.2