added error code for the FIPS DH agreement KAT test in the POST

This commit is contained in:
John Safranek 2018-02-28 10:54:53 -08:00
parent 5cc046eb6d
commit d035c1dd81
2 changed files with 5 additions and 1 deletions

View File

@ -455,6 +455,9 @@ const char* wc_GetErrorString(int error)
case ECDSA_PAT_FIPS_E:
return "wolfcrypt FIPS ECDSA Pairwise Agreement Test Failure";
case DH_KAT_FIPS_E:
return "wolfcrypt FIPS DH Known Answer Test Failure";
default:
return "unknown error number";

View File

@ -201,8 +201,9 @@ enum {
RSA_OUT_OF_RANGE_E = -253, /* Ciphertext to decrypt out of range. */
RSAPSS_PAT_FIPS_E = -254, /* RSA-PSS 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 */
/* add new companion error id strings for any new error codes