Test Fixes

1. Added error code for ECDHE FIPS KAT failure.
This commit is contained in:
John Safranek
2018-03-09 14:18:25 -08:00
parent 369c2debde
commit b92b8222ed
2 changed files with 5 additions and 1 deletions

View File

@ -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";

View File

@ -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