forked from wolfSSL/wolfssl
added error code for the FIPS DH agreement KAT test in the POST
This commit is contained in:
@@ -455,6 +455,9 @@ const char* wc_GetErrorString(int error)
|
|||||||
case ECDSA_PAT_FIPS_E:
|
case ECDSA_PAT_FIPS_E:
|
||||||
return "wolfcrypt FIPS ECDSA Pairwise Agreement Test Failure";
|
return "wolfcrypt FIPS ECDSA Pairwise Agreement Test Failure";
|
||||||
|
|
||||||
|
case DH_KAT_FIPS_E:
|
||||||
|
return "wolfcrypt FIPS DH Known Answer Test Failure";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown error number";
|
return "unknown error number";
|
||||||
|
|
||||||
|
@@ -201,8 +201,9 @@ enum {
|
|||||||
RSA_OUT_OF_RANGE_E = -253, /* Ciphertext to decrypt out of range. */
|
RSA_OUT_OF_RANGE_E = -253, /* Ciphertext to decrypt out of range. */
|
||||||
RSAPSS_PAT_FIPS_E = -254, /* RSA-PSS PAT failure */
|
RSAPSS_PAT_FIPS_E = -254, /* RSA-PSS PAT failure */
|
||||||
ECDSA_PAT_FIPS_E = -255, /* ECDSA PAT failure */
|
ECDSA_PAT_FIPS_E = -255, /* ECDSA PAT failure */
|
||||||
|
DH_KAT_FIPS_E = -256, /* DH KAT failure */
|
||||||
|
|
||||||
WC_LAST_E = -255, /* Update this to indicate last error */
|
WC_LAST_E = -256, /* Update this to indicate last error */
|
||||||
MIN_CODE_E = -300 /* errors -101 - -299 */
|
MIN_CODE_E = -300 /* errors -101 - -299 */
|
||||||
|
|
||||||
/* add new companion error id strings for any new error codes
|
/* add new companion error id strings for any new error codes
|
||||||
|
Reference in New Issue
Block a user