diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c index 66806356a..70253f2f5 100644 --- a/wolfcrypt/src/error.c +++ b/wolfcrypt/src/error.c @@ -533,6 +533,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"; diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index 2ca1131bd..1e009122e 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -239,8 +239,9 @@ enum { MISSING_KEY = -278, /* Key was not set */ BAD_LENGTH_E = -279, /* Value of length parameter is invalid. */ ECDSA_KAT_FIPS_E = -280, /* ECDSA KAT failure */ + RSA_PAT_FIPS_E = -281, /* RSA Pairwise failure */ - WC_LAST_E = -280, /* Update this to indicate last error */ + WC_LAST_E = -281, /* Update this to indicate last error */ MIN_CODE_E = -300 /* errors -101 - -299 */ /* add new companion error id strings for any new error codes diff --git a/wolfssl/wolfcrypt/fips_test.h b/wolfssl/wolfcrypt/fips_test.h index 42debf9e7..19386c882 100644 --- a/wolfssl/wolfcrypt/fips_test.h +++ b/wolfssl/wolfcrypt/fips_test.h @@ -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,