added error codes for the FIPS pairwise agreement tests in the POST

pull/1405/head
John Safranek 2018-02-27 12:42:25 -08:00
parent 91141e43c9
commit 5cc046eb6d
2 changed files with 9 additions and 1 deletions

View File

@ -449,6 +449,12 @@ const char* wc_GetErrorString(int error)
case RSA_OUT_OF_RANGE_E:
return "Ciphertext to decrypt is out of range";
case RSAPSS_PAT_FIPS_E:
return "wolfcrypt FIPS RSA-PSS Pairwise Agreement Test Failure";
case ECDSA_PAT_FIPS_E:
return "wolfcrypt FIPS ECDSA Pairwise Agreement Test Failure";
default:
return "unknown error number";

View File

@ -199,8 +199,10 @@ enum {
PRIME_GEN_E = -251, /* Failure finding a prime. */
BER_INDEF_E = -252, /* Cannot decode indefinite length BER. */
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 */
WC_LAST_E = -253, /* Update this to indicate last error */
WC_LAST_E = -255, /* Update this to indicate last error */
MIN_CODE_E = -300 /* errors -101 - -299 */
/* add new companion error id strings for any new error codes