Test Fixes

1. Added error code for ECDHE FIPS KAT failure.
cert-3389
John Safranek 2018-03-09 14:18:25 -08:00
parent 19da916102
commit 4ba026c0bf
2 changed files with 5 additions and 1 deletions

View File

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

View File

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