mirror of https://github.com/wolfSSL/wolfssl.git
added error codes for the FIPS pairwise agreement tests in the POST
parent
91141e43c9
commit
5cc046eb6d
|
@ -449,6 +449,12 @@ const char* wc_GetErrorString(int error)
|
||||||
case RSA_OUT_OF_RANGE_E:
|
case RSA_OUT_OF_RANGE_E:
|
||||||
return "Ciphertext to decrypt is out of range";
|
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:
|
default:
|
||||||
return "unknown error number";
|
return "unknown error number";
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,10 @@ enum {
|
||||||
PRIME_GEN_E = -251, /* Failure finding a prime. */
|
PRIME_GEN_E = -251, /* Failure finding a prime. */
|
||||||
BER_INDEF_E = -252, /* Cannot decode indefinite length BER. */
|
BER_INDEF_E = -252, /* Cannot decode indefinite length BER. */
|
||||||
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 */
|
||||||
|
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 */
|
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
|
||||||
|
|
Loading…
Reference in New Issue