My Project
sha.h
Go to the documentation of this file.
1 
27 int wc_InitSha(wc_Sha*);
28 
60 int wc_ShaUpdate(wc_Sha* sha, const byte* data, word32 len);
61 
92 int wc_ShaFinal(wc_Sha* sha, byte* hash);
93 
116 void wc_ShaFree(wc_Sha*);
117 
145 int wc_ShaGetHash(wc_Sha* sha, byte* hash);
wc_InitSha
int wc_InitSha(wc_Sha *)
This function initializes SHA. This is automatically called by wc_ShaHash.
wc_ShaFinal
int wc_ShaFinal(wc_Sha *sha, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha struct.
wc_ShaFree
void wc_ShaFree(wc_Sha *)
Used to clean up memory used by an initialized Sha struct. Note: this is only supported if you have W...
wc_ShaUpdate
int wc_ShaUpdate(wc_Sha *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
wc_ShaGetHash
int wc_ShaGetHash(wc_Sha *sha, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha struct.