From 9e81261f1e9c58f744149c276c833a73a62d26bf Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Fri, 11 Nov 2016 16:11:16 +1000 Subject: [PATCH] Fixes --- cyassl/ctaocrypt/sha256.h | 7 +++++++ wolfssl/wolfcrypt/sha256.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cyassl/ctaocrypt/sha256.h b/cyassl/ctaocrypt/sha256.h index d875e3138..8f9f40f5e 100644 --- a/cyassl/ctaocrypt/sha256.h +++ b/cyassl/ctaocrypt/sha256.h @@ -35,6 +35,13 @@ #define Sha256Final wc_Sha256Final #define Sha256Hash wc_Sha256Hash +#ifdef WOLFSSL_SHA224 + #define InitSha224 wc_InitSha224 + #define Sha224Update wc_Sha224Update + #define Sha224Final wc_Sha224Final + #define Sha224Hash wc_Sha224Hash +#endif + #endif /* CTAO_CRYPT_SHA256_H */ #endif /* NO_SHA256 */ diff --git a/wolfssl/wolfcrypt/sha256.h b/wolfssl/wolfcrypt/sha256.h index f460a6e26..f0109c4ea 100644 --- a/wolfssl/wolfcrypt/sha256.h +++ b/wolfssl/wolfcrypt/sha256.h @@ -76,7 +76,7 @@ WOLFSSL_API int wc_InitSha256(Sha256*); WOLFSSL_API int wc_Sha256Update(Sha256*, const byte*, word32); WOLFSSL_API int wc_Sha256Final(Sha256*, byte*); -#if defined(WOLFSSL_SHA224) +#ifdef WOLFSSL_SHA224 #ifndef HAVE_FIPS /* avoid redefinition of structs */ /* in bytes */