From 81fd594c9f4370c975aac5d4f0badaeca814e9ef Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 7 Nov 2014 16:23:19 -0800 Subject: [PATCH] add fips get status functions --- cyassl/ctaocrypt/fips_test.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cyassl/ctaocrypt/fips_test.h b/cyassl/ctaocrypt/fips_test.h index e40a19964..0ad9c6285 100644 --- a/cyassl/ctaocrypt/fips_test.h +++ b/cyassl/ctaocrypt/fips_test.h @@ -30,17 +30,20 @@ extern "C" { #endif -/* Known Answer Test string inputs are hex */ - +/* Known Answer Test string inputs are hex, internal */ CYASSL_LOCAL int DoKnownAnswerTests(char*); -/* Power on self test failure callback */ +/* FIPS failure callback */ typedef void(*wolfCrypt_fips_cb)(int ok, int err, const char* hash); /* Public set function */ CYASSL_API int wolfCrypt_SetCb_fips(wolfCrypt_fips_cb cbf); +/* Public get status functions */ +CYASSL_API int wolfCrypt_GetStatus_fips(void); +CYASSL_API const char* wolfCrypt_GetCoreHash_fips(void); + #ifdef __cplusplus } /* extern "C" */