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);
wc_Sha256Free
void wc_Sha256Free(wc_Sha256 *)
Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
wc_Sha256Final
int wc_Sha256Final(wc_Sha256 *sha256, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct.
wc_Sha224Final
int wc_Sha224Final(wc_Sha224 *sha224, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct.
wc_Sha256GetHash
int wc_Sha256GetHash(wc_Sha256 *sha256, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha256 struct.
wc_InitSha224
int wc_InitSha224(wc_Sha224 *)
Used to initialize a Sha224 struct.
wc_Sha224Update
int wc_Sha224Update(wc_Sha224 *sha224, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
wc_Sha256Update
int wc_Sha256Update(wc_Sha256 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
wc_InitSha256
int wc_InitSha256(wc_Sha256 *)
This function initializes SHA256. This is automatically called by wc_Sha256Hash.