Add RSA PAT.

This commit is contained in:
John Safranek
2021-02-26 10:17:51 -08:00
parent 4a75585c7a
commit 1368cac8b5
3 changed files with 6 additions and 1 deletions

View File

@ -521,6 +521,9 @@ const char* wc_GetErrorString(int error)
case ECDSA_KAT_FIPS_E:
return "wolfcrypt FIPS ECDSA Known Answer Test Failure";
case RSA_PAT_FIPS_E:
return "wolfcrypt FIPS RSA Pairwise Agreement Test Failure";
default:
return "unknown error number";

View File

@ -235,8 +235,9 @@ enum {
CHACHA_POLY_OVERFLOW =-274, /* ChaCha20Poly1305 limit overflow */
ASN_SELF_SIGNED_E = -275, /* ASN self-signed certificate error */
ECDSA_KAT_FIPS_E = -276, /* ECDSA KAT failure */
RSA_PAT_FIPS_E = -277, /* RSA Pairwise failure */
WC_LAST_E = -276, /* Update this to indicate last error */
WC_LAST_E = -277, /* Update this to indicate last error */
MIN_CODE_E = -300 /* errors -101 - -299 */
/* add new companion error id strings for any new error codes

View File

@ -40,6 +40,7 @@ enum FipsCastId {
FIPS_CAST_HMAC_SHA3_256,
FIPS_CAST_DRBG,
FIPS_CAST_RSA_SIGN_PKCS1v15,
FIPS_CAST_RSA_PAIRWISE,
FIPS_CAST_ECC_CDH,
FIPS_CAST_ECC_PRIMITIVE_Z,
FIPS_CAST_DH_PRIMITIVE_Z,