mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Add RSA PAT.
This commit is contained in:
committed by
Daniel Pouzzner
parent
9656b83a03
commit
e32c58d533
@@ -533,6 +533,9 @@ const char* wc_GetErrorString(int error)
|
|||||||
case ECDSA_KAT_FIPS_E:
|
case ECDSA_KAT_FIPS_E:
|
||||||
return "wolfcrypt FIPS ECDSA Known Answer Test Failure";
|
return "wolfcrypt FIPS ECDSA Known Answer Test Failure";
|
||||||
|
|
||||||
|
case RSA_PAT_FIPS_E:
|
||||||
|
return "wolfcrypt FIPS RSA Pairwise Agreement Test Failure";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown error number";
|
return "unknown error number";
|
||||||
|
|
||||||
|
@@ -239,8 +239,9 @@ enum {
|
|||||||
MISSING_KEY = -278, /* Key was not set */
|
MISSING_KEY = -278, /* Key was not set */
|
||||||
BAD_LENGTH_E = -279, /* Value of length parameter is invalid. */
|
BAD_LENGTH_E = -279, /* Value of length parameter is invalid. */
|
||||||
ECDSA_KAT_FIPS_E = -280, /* ECDSA KAT failure */
|
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 */
|
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
|
||||||
|
@@ -40,6 +40,7 @@ enum FipsCastId {
|
|||||||
FIPS_CAST_HMAC_SHA3_256,
|
FIPS_CAST_HMAC_SHA3_256,
|
||||||
FIPS_CAST_DRBG,
|
FIPS_CAST_DRBG,
|
||||||
FIPS_CAST_RSA_SIGN_PKCS1v15,
|
FIPS_CAST_RSA_SIGN_PKCS1v15,
|
||||||
|
FIPS_CAST_RSA_PAIRWISE,
|
||||||
FIPS_CAST_ECC_CDH,
|
FIPS_CAST_ECC_CDH,
|
||||||
FIPS_CAST_ECC_PRIMITIVE_Z,
|
FIPS_CAST_ECC_PRIMITIVE_Z,
|
||||||
FIPS_CAST_DH_PRIMITIVE_Z,
|
FIPS_CAST_DH_PRIMITIVE_Z,
|
||||||
|
Reference in New Issue
Block a user