forked from wolfSSL/wolfssl
Add CASTs for TLSv1.2, TLSv1.3, and SSH KDFs.
This commit is contained in:
@@ -524,6 +524,15 @@ const char* wc_GetErrorString(int error)
|
|||||||
case RSA_PAT_FIPS_E:
|
case RSA_PAT_FIPS_E:
|
||||||
return "wolfcrypt FIPS RSA Pairwise Agreement Test Failure";
|
return "wolfcrypt FIPS RSA Pairwise Agreement Test Failure";
|
||||||
|
|
||||||
|
case KDF_TLS12_KAT_FIPS_E:
|
||||||
|
return "wolfcrypt FIPS TLSv1.2 KDF Known Answer Test Failure";
|
||||||
|
|
||||||
|
case KDF_TLS13_KAT_FIPS_E:
|
||||||
|
return "wolfcrypt FIPS TLSv1.3 KDF Known Answer Test Failure";
|
||||||
|
|
||||||
|
case KDF_SSH_KAT_FIPS_E:
|
||||||
|
return "wolfcrypt FIPS SSH KDF Known Answer Test Failure";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return "unknown error number";
|
return "unknown error number";
|
||||||
|
|
||||||
|
@@ -236,8 +236,11 @@ enum {
|
|||||||
ASN_SELF_SIGNED_E = -275, /* ASN self-signed certificate error */
|
ASN_SELF_SIGNED_E = -275, /* ASN self-signed certificate error */
|
||||||
ECDSA_KAT_FIPS_E = -276, /* ECDSA KAT failure */
|
ECDSA_KAT_FIPS_E = -276, /* ECDSA KAT failure */
|
||||||
RSA_PAT_FIPS_E = -277, /* RSA Pairwise failure */
|
RSA_PAT_FIPS_E = -277, /* RSA Pairwise failure */
|
||||||
|
KDF_TLS12_KAT_FIPS_E = -278, /* TLS12 KDF KAT failure */
|
||||||
|
KDF_TLS13_KAT_FIPS_E = -279, /* TLS13 KDF KAT failure */
|
||||||
|
KDF_SSH_KAT_FIPS_E = -280, /* SSH KDF KAT failure */
|
||||||
|
|
||||||
WC_LAST_E = -277, /* Update this to indicate last error */
|
WC_LAST_E = -280, /* 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
|
||||||
|
@@ -47,6 +47,9 @@ enum FipsCastId {
|
|||||||
FIPS_CAST_ECDSA,
|
FIPS_CAST_ECDSA,
|
||||||
FIPS_CAST_ECDSA_PAIRWISE,
|
FIPS_CAST_ECDSA_PAIRWISE,
|
||||||
FIPS_CAST_ECDSA_SHA3_PAIRWISE,
|
FIPS_CAST_ECDSA_SHA3_PAIRWISE,
|
||||||
|
FIPS_CAST_KDF_TLS12,
|
||||||
|
FIPS_CAST_KDF_TLS13,
|
||||||
|
FIPS_CAST_KDF_SSH,
|
||||||
FIPS_CAST_COUNT
|
FIPS_CAST_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user