forked from wolfSSL/wolfssl
including hash.h in hash.c
This commit is contained in:
@@ -26,8 +26,18 @@
|
|||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
|
||||||
#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH)
|
#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH)
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/md5.h>
|
#include <wolfssl/wolfcrypt/md5.h>
|
||||||
|
#endif
|
||||||
|
#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH)
|
||||||
|
#include <wolfssl/wolfcrypt/sha.h>
|
||||||
|
#endif
|
||||||
|
#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH)
|
||||||
|
#include <wolfssl/wolfcrypt/sha256.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <wolfssl/wolfcrypt/hash.h>
|
||||||
|
|
||||||
|
#if !defined(NO_MD5) && !defined(WOLFSSL_TI_HASH)
|
||||||
void wc_Md5GetHash(Md5* md5, byte* hash)
|
void wc_Md5GetHash(Md5* md5, byte* hash)
|
||||||
{
|
{
|
||||||
Md5 save = *md5 ;
|
Md5 save = *md5 ;
|
||||||
@@ -37,9 +47,6 @@ void wc_Md5GetHash(Md5* md5, byte* hash)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH)
|
#if !defined(NO_SHA) && !defined(WOLFSSL_TI_HASH)
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/sha.h>
|
|
||||||
|
|
||||||
int wc_ShaGetHash(Sha* sha, byte* hash)
|
int wc_ShaGetHash(Sha* sha, byte* hash)
|
||||||
{
|
{
|
||||||
int ret ;
|
int ret ;
|
||||||
@@ -51,9 +58,6 @@ int wc_ShaGetHash(Sha* sha, byte* hash)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH)
|
#if !defined(NO_SHA256) && !defined(WOLFSSL_TI_HASH)
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/sha256.h>
|
|
||||||
|
|
||||||
int wc_Sha256GetHash(Sha256* sha256, byte* hash)
|
int wc_Sha256GetHash(Sha256* sha256, byte* hash)
|
||||||
{
|
{
|
||||||
int ret ;
|
int ret ;
|
||||||
@@ -62,5 +66,4 @@ int wc_Sha256GetHash(Sha256* sha256, byte* hash)
|
|||||||
*sha256 = save ;
|
*sha256 = save ;
|
||||||
return ret ;
|
return ret ;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user