My Project
sha256.h
Go to the documentation of this file.
1 
27 int wc_InitSha256(wc_Sha256*);
28 
60 int wc_Sha256Update(wc_Sha256* sha, const byte* data, word32 len);
61 
92 int wc_Sha256Final(wc_Sha256* sha256, byte* hash);
93 
124 void wc_Sha256Free(wc_Sha256*);
125 
153 int wc_Sha256GetHash(wc_Sha256* sha256, byte* hash);
154 
178 int wc_InitSha224(wc_Sha224*);
179 
213 int wc_Sha224Update(wc_Sha224* sha224, const byte* data, word32 len);
214 
246 int wc_Sha224Final(wc_Sha224* sha224, byte* hash);
int wc_Sha256GetHash(wc_Sha256 *sha256, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha256 struct.
int wc_Sha224Update(wc_Sha224 *sha224, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
int wc_Sha256Update(wc_Sha256 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
int wc_Sha224Final(wc_Sha224 *sha224, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct.
int wc_InitSha256(wc_Sha256 *)
This function initializes SHA256. This is automatically called by wc_Sha256Hash.
int wc_Sha256Final(wc_Sha256 *sha256, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct.
void wc_Sha256Free(wc_Sha256 *)
Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_InitSha224(wc_Sha224 *)
Used to initialize a Sha224 struct.