diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c index c7a304408..4a639335a 100644 --- a/wolfcrypt/src/error.c +++ b/wolfcrypt/src/error.c @@ -467,6 +467,9 @@ const char* wc_GetErrorString(int error) case SHA3_KAT_FIPS_E: return "SHA-3 Known Answer Test check FIPS error"; + case ECDHE_KAT_FIPS_E: + return "wolfcrypt FIPS ECDHE Known Answer Test Failure"; + default: return "unknown error number"; diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index 0ff9d6907..f2fe93128 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -207,8 +207,9 @@ enum { DH_KAT_FIPS_E = -256, /* DH KAT failure */ AESCCM_KAT_FIPS_E = -257, /* AESCCM KAT failure */ SHA3_KAT_FIPS_E = -258, /* SHA-3 KAT failure */ + ECDHE_KAT_FIPS_E = -259, /* ECDHE KAT failure */ - WC_LAST_E = -258, /* Update this to indicate last error */ + WC_LAST_E = -259, /* Update this to indicate last error */ MIN_CODE_E = -300 /* errors -101 - -299 */ /* add new companion error id strings for any new error codes