Add additional KMAC error
authorPauli <pauli@openssl.org>
Sat, 10 Apr 2021 02:40:59 +0000 (12:40 +1000)
committerPauli <pauli@openssl.org>
Mon, 12 Apr 2021 04:59:09 +0000 (14:59 +1000)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14810)

crypto/err/openssl.txt
include/openssl/proverr.h
providers/common/provider_err.c

index 07439f7c4ae6ed4c1031eb4e8f09cfbb90e6a803..ee17b68405cd4a871c3aab2279fe08fddd73cb6d 100644 (file)
@@ -1006,6 +1006,7 @@ PROV_R_INVALID_X931_DIGEST:170:invalid x931 digest
 PROV_R_IN_ERROR_STATE:192:in error state
 PROV_R_KEY_SETUP_FAILED:101:key setup failed
 PROV_R_KEY_SIZE_TOO_SMALL:171:key size too small
+PROV_R_LENGTH_TOO_LARGE:202:length too large
 PROV_R_MISSING_CEK_ALG:144:missing cek alg
 PROV_R_MISSING_CIPHER:155:missing cipher
 PROV_R_MISSING_CONFIG_DATA:213:missing config data
index 99a937f1e3657464fecb06889b4508cd6d7b4286..c40815a03bb0d25f991198c88e63cb014a6222a1 100644 (file)
@@ -79,6 +79,7 @@
 # define PROV_R_IN_ERROR_STATE                            192
 # define PROV_R_KEY_SETUP_FAILED                          101
 # define PROV_R_KEY_SIZE_TOO_SMALL                        171
+# define PROV_R_LENGTH_TOO_LARGE                          202
 # define PROV_R_MISSING_CEK_ALG                           144
 # define PROV_R_MISSING_CIPHER                            155
 # define PROV_R_MISSING_CONFIG_DATA                       213
index 30574f4c6c30980d87bed9a62240eb0aabe2f749..dd1a98f9352c0159902923f6604fb1b6374283c0 100644 (file)
@@ -110,6 +110,7 @@ static const ERR_STRING_DATA PROV_str_reasons[] = {
     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_KEY_SETUP_FAILED), "key setup failed"},
     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_KEY_SIZE_TOO_SMALL),
     "key size too small"},
+    {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_LENGTH_TOO_LARGE), "length too large"},
     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CEK_ALG), "missing cek alg"},
     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CIPHER), "missing cipher"},
     {ERR_PACK(ERR_LIB_PROV, 0, PROV_R_MISSING_CONFIG_DATA),