From b92b8222ed69d6985643dbf1825db0aca639eeb7 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Fri, 9 Mar 2018 14:18:25 -0800 Subject: [PATCH] Test Fixes 1. Added error code for ECDHE FIPS KAT failure. --- wolfcrypt/src/error.c | 3 +++ wolfssl/wolfcrypt/error-crypt.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c index b930341cd..8d38ee9af 100644 --- a/wolfcrypt/src/error.c +++ b/wolfcrypt/src/error.c @@ -464,6 +464,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 650728514..d367d7bb8 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -206,8 +206,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