My Project
sha3.h
Go to the documentation of this file.
1 
27 int wc_InitSha3_224(wc_Sha3* sha3, void* heap, int devId);
28 
60 int wc_Sha3_224_Update(wc_Sha3* sha, const byte* data, word32 len);
61 
92 int wc_Sha3_224_Final(wc_Sha3* sha3, byte* hash);
93 
124 void wc_Sha3_224_Free(wc_Sha3*);
125 
154 int wc_Sha3_224_GetHash(wc_Sha3* sha3, byte* hash);
155 
184 int wc_Sha3_224_Copy(wc_Sha3* sha3, wc_Sha3* dst);
185 
212 int wc_InitSha3_256(wc_Sha3* sha3, void* heap, int devId);
213 
245 int wc_Sha3_256_Update(wc_Sha3* sha, const byte* data, word32 len);
246 
277 int wc_Sha3_256_Final(wc_Sha3* sha3, byte* hash);
278 
309 void wc_Sha3_256_Free(wc_Sha3*);
310 
339 int wc_Sha3_256_GetHash(wc_Sha3* sha3, byte* hash);
340 
369 int wc_Sha3_256_Copy(wc_Sha3* sha3, wc_Sha3* dst);
370 
397 int wc_InitSha3_384(wc_Sha3* sha3, void* heap, int devId);
398 
430 int wc_Sha3_384_Update(wc_Sha3* sha, const byte* data, word32 len);
431 
462 int wc_Sha3_384_Final(wc_Sha3* sha3, byte* hash);
463 
494 void wc_Sha3_384_Free(wc_Sha3*);
495 
524 int wc_Sha3_384_GetHash(wc_Sha3* sha3, byte* hash);
525 
554 int wc_Sha3_384_Copy(wc_Sha3* sha3, wc_Sha3* dst);
555 
582 int wc_InitSha3_512(wc_Sha3* sha3, void* heap, int devId);
583 
615 int wc_Sha3_512_Update(wc_Sha3* sha, const byte* data, word32 len);
616 
647 int wc_Sha3_512_Final(wc_Sha3* sha3, byte* hash);
648 
679 void wc_Sha3_512_Free(wc_Sha3*);
680 
709 int wc_Sha3_512_GetHash(wc_Sha3* sha3, byte* hash);
710 
739 int wc_Sha3_512_Copy(wc_Sha3* sha3, wc_Sha3* dst);
740 
767 int wc_InitShake128(wc_Shake* shake, void* heap, int devId);
768 
800 int wc_Shake128_Update(wc_Shake* sha, const byte* data, word32 len);
801 
832 int wc_Shake128_Final(wc_Shake* shake, byte* hash);
833 
866 int wc_Shake128_Absorb(wc_Shake* sha, const byte* data, word32 len);
867 
901 int wc_Shake128_SqueezeBlocks(wc_Shake* shake, byte* out, word32 blockCnt);
902 
933 void wc_Shake128_Free(wc_Shake*);
934 
963 int wc_Shake128_GetHash(wc_Shake* shake, byte* hash);
964 
993 int wc_Shake128_Copy(wc_Shake* shake, wc_Shake* dst);
994 
1021 int wc_InitShake256(wc_Shake* shake, void* heap, int devId);
1022 
1054 int wc_Shake256_Update(wc_Shake* sha, const byte* data, word32 len);
1055 
1087 int wc_Shake256_Final(wc_Shake* shake, byte* hash, word32 hashLen);
1088 
1121 int wc_Shake256_Absorb(wc_Shake* sha, const byte* data, word32 len);
1122 
1156 int wc_Shake256_SqueezeBlocks(wc_Shake* shake, byte* out, word32 blockCnt);
1157 
1188 void wc_Shake256_Free(wc_Shake*);
1189 
1218 int wc_Shake256_GetHash(wc_Shake* shake, byte* hash);
1219 
1248 int wc_Shake256_Copy(wc_Shake* shake, wc_Shake* dst);
1249 
1250 
int wc_Sha3_224_Update(wc_Sha3 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
void wc_Shake256_Free(wc_Shake *)
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_InitSha3_256(wc_Sha3 *sha3, void *heap, int devId)
This function initializes SHA3-256. This is automatically called by wc_Sha3_256Hash.
int wc_Shake128_GetHash(wc_Shake *shake, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of shake struct.
int wc_Shake256_GetHash(wc_Shake *shake, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of shake struct.
int wc_Sha3_384_GetHash(wc_Sha3 *sha3, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha3 struct.
int wc_Shake256_Final(wc_Shake *shake, byte *hash, word32 hashLen)
Finalizes hashing of data. Result is placed into hash. Resets state of shake struct.
int wc_Sha3_224_GetHash(wc_Sha3 *sha3, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha3 struct.
int wc_InitShake128(wc_Shake *shake, void *heap, int devId)
This function initializes SHAKE-128. This is automatically called by wc_Shake128Hash.
int wc_Sha3_512_Copy(wc_Sha3 *sha3, wc_Sha3 *dst)
Copy the state of the hash.
int wc_InitShake256(wc_Shake *shake, void *heap, int devId)
This function initializes SHAKE-256. This is automatically called by wc_Shake256Hash.
int wc_Sha3_512_Final(wc_Sha3 *sha3, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
int wc_Shake128_SqueezeBlocks(wc_Shake *shake, byte *out, word32 blockCnt)
Squeeze out more blocks of data. Result is placed into out. Can be called inrementally.
int wc_Shake256_Copy(wc_Shake *shake, wc_Shake *dst)
Copy the state of the hash.
int wc_Sha3_256_Update(wc_Sha3 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
int wc_Shake128_Final(wc_Shake *shake, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of shake struct.
int wc_Sha3_256_Copy(wc_Sha3 *sha3, wc_Sha3 *dst)
Copy the state of the hash.
int wc_InitSha3_384(wc_Sha3 *sha3, void *heap, int devId)
This function initializes SHA3-384. This is automatically called by wc_Sha3_384Hash.
int wc_Shake256_Update(wc_Shake *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
void wc_Sha3_256_Free(wc_Sha3 *)
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_Shake128_Copy(wc_Shake *shake, wc_Shake *dst)
Copy the state of the hash.
int wc_Sha3_224_Final(wc_Sha3 *sha3, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
int wc_Shake128_Absorb(wc_Shake *sha, const byte *data, word32 len)
Called to absorb the provided byte array of length len. Cannot be called incrementally.
int wc_Sha3_512_GetHash(wc_Sha3 *sha3, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha3 struct.
int wc_Sha3_512_Update(wc_Sha3 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
int wc_Shake256_Absorb(wc_Shake *sha, const byte *data, word32 len)
Called to absorb the provided byte array of length len. Cannot be called incrementally.
void wc_Sha3_384_Free(wc_Sha3 *)
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_Shake128_Update(wc_Shake *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
void wc_Shake128_Free(wc_Shake *)
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
void wc_Sha3_224_Free(wc_Sha3 *)
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_Sha3_384_Final(wc_Sha3 *sha3, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
int wc_Sha3_384_Copy(wc_Sha3 *sha3, wc_Sha3 *dst)
Copy the state of the hash.
int wc_Sha3_256_GetHash(wc_Sha3 *sha3, byte *hash)
Gets hash data. Result is placed into hash. Does not reset state of sha3 struct.
int wc_Sha3_384_Update(wc_Sha3 *sha, const byte *data, word32 len)
Can be called to continually hash the provided byte array of length len.
int wc_InitSha3_224(wc_Sha3 *sha3, void *heap, int devId)
This function initializes SHA3-224. This is automatically called by wc_Sha3_224Hash.
void wc_Sha3_512_Free(wc_Sha3 *)
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
int wc_Shake256_SqueezeBlocks(wc_Shake *shake, byte *out, word32 blockCnt)
Squeeze out more blocks of data. Result is placed into out. Can be called incrementally.
int wc_Sha3_224_Copy(wc_Sha3 *sha3, wc_Sha3 *dst)
Copy the state of the hash.
int wc_Sha3_256_Final(wc_Sha3 *sha3, byte *hash)
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
int wc_InitSha3_512(wc_Sha3 *sha3, void *heap, int devId)
This function initializes SHA3-512. This is automatically called by wc_Sha3_512Hash.