diff --git a/wolfcrypt/src/hash.c b/wolfcrypt/src/hash.c index 7a6e51f3b..cc9a65431 100644 --- a/wolfcrypt/src/hash.c +++ b/wolfcrypt/src/hash.c @@ -26,8 +26,18 @@ #include #if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH) - #include +#endif +#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH) +#include +#endif +#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH) +#include +#endif + +#include + +#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH) void wc_Md5GetHash(Md5* md5, byte* hash) { Md5 save = *md5 ; @@ -37,9 +47,6 @@ void wc_Md5GetHash(Md5* md5, byte* hash) #endif #if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH) - -#include - int wc_ShaGetHash(Sha* sha, byte* hash) { int ret ; @@ -51,9 +58,6 @@ int wc_ShaGetHash(Sha* sha, byte* hash) #endif #if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH) - -#include - int wc_Sha256GetHash(Sha256* sha256, byte* hash) { int ret ; @@ -62,5 +66,4 @@ int wc_Sha256GetHash(Sha256* sha256, byte* hash) *sha256 = save ; return ret ; } - #endif