From 6944eb69f627a979a3db22f8c643de552e5c43a2 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 10 Nov 2014 15:38:41 -0800 Subject: [PATCH] added error code for AESGCM FIPS KAT test error --- ctaocrypt/src/error.c | 3 +++ cyassl/ctaocrypt/error-crypt.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ctaocrypt/src/error.c b/ctaocrypt/src/error.c index 9970462dc..84c90e927 100644 --- a/ctaocrypt/src/error.c +++ b/ctaocrypt/src/error.c @@ -307,6 +307,9 @@ const char* CTaoCryptGetErrorString(int error) case DRBG_CONT_FIPS_E: return "DRBG Continuous Test FIPS error"; + case AESGCM_KAT_FIPS_E: + return "AESGCM Known Answer Test check FIPS error"; + default: return "unknown error number"; diff --git a/cyassl/ctaocrypt/error-crypt.h b/cyassl/ctaocrypt/error-crypt.h index df16a22a2..ad6e4966f 100644 --- a/cyassl/ctaocrypt/error-crypt.h +++ b/cyassl/ctaocrypt/error-crypt.h @@ -132,11 +132,12 @@ enum { IN_CORE_FIPS_E = -203, /* In Core Integrity check failure */ AES_KAT_FIPS_E = -204, /* AES KAT failure */ - DES3_KAT_FIPS_E = -205, /* AES KAT failure */ + DES3_KAT_FIPS_E = -205, /* DES3 KAT failure */ HMAC_KAT_FIPS_E = -206, /* HMAC KAT failure */ RSA_KAT_FIPS_E = -207, /* RSA KAT failure */ DRBG_KAT_FIPS_E = -208, /* HASH DRBG KAT failure */ DRBG_CONT_FIPS_E = -209, /* HASH DRBG Continious test failure */ + AESGCM_KAT_FIPS_E = -210, /* AESGCM KAT failure */ MIN_CODE_E = -300 /* errors -101 - -299 */ };