From f11d2c435dadc9c16101d742225d875699c63e6e Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 6 Nov 2014 14:56:11 -0800 Subject: [PATCH] add fips continuous test error code/msg --- ctaocrypt/src/error.c | 3 +++ cyassl/ctaocrypt/error-crypt.h | 1 + 2 files changed, 4 insertions(+) diff --git a/ctaocrypt/src/error.c b/ctaocrypt/src/error.c index 1d47525f9..9970462dc 100644 --- a/ctaocrypt/src/error.c +++ b/ctaocrypt/src/error.c @@ -304,6 +304,9 @@ const char* CTaoCryptGetErrorString(int error) case DRBG_KAT_FIPS_E: return "DRBG Known Answer Test check FIPS error"; + case DRBG_CONT_FIPS_E: + return "DRBG Continuous Test FIPS error"; + default: return "unknown error number"; diff --git a/cyassl/ctaocrypt/error-crypt.h b/cyassl/ctaocrypt/error-crypt.h index 11b274692..df16a22a2 100644 --- a/cyassl/ctaocrypt/error-crypt.h +++ b/cyassl/ctaocrypt/error-crypt.h @@ -136,6 +136,7 @@ enum { 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 */ MIN_CODE_E = -300 /* errors -101 - -299 */ };