diff --git a/wolfcrypt/src/hash.c b/wolfcrypt/src/hash.c index cc9a65431..f275b50c1 100644 --- a/wolfcrypt/src/hash.c +++ b/wolfcrypt/src/hash.c @@ -25,19 +25,21 @@ #include -#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH) +#if !defined(WOLFSSL_TI_HASH) + +#if !defined(NO_MD5) #include #endif -#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH) +#if !defined(NO_SHA) #include #endif -#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH) +#if !defined(NO_SHA256) #include #endif #include -#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH) +#if !defined(NO_MD5) void wc_Md5GetHash(Md5* md5, byte* hash) { Md5 save = *md5 ; @@ -46,7 +48,7 @@ void wc_Md5GetHash(Md5* md5, byte* hash) } #endif -#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH) +#if !defined(NO_SHA) int wc_ShaGetHash(Sha* sha, byte* hash) { int ret ; @@ -57,7 +59,7 @@ int wc_ShaGetHash(Sha* sha, byte* hash) } #endif -#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH) +#if !defined(NO_SHA256) int wc_Sha256GetHash(Sha256* sha256, byte* hash) { int ret ; @@ -67,3 +69,6 @@ int wc_Sha256GetHash(Sha256* sha256, byte* hash) return ret ; } #endif + +#endif +