My Project
Loading...
Searching...
No Matches
sha3.h
Go to the documentation of this file.
1
27int wc_InitSha3_224(wc_Sha3* sha3, void* heap, int devId);
28
60int wc_Sha3_224_Update(wc_Sha3* sha, const byte* data, word32 len);
61
92int wc_Sha3_224_Final(wc_Sha3* sha3, byte* hash);
93
124void wc_Sha3_224_Free(wc_Sha3*);
125
154int wc_Sha3_224_GetHash(wc_Sha3* sha3, byte* hash);
155
184int wc_Sha3_224_Copy(wc_Sha3* sha3, wc_Sha3* dst);
185
212int wc_InitSha3_256(wc_Sha3* sha3, void* heap, int devId);
213
245int wc_Sha3_256_Update(wc_Sha3* sha, const byte* data, word32 len);
246
277int wc_Sha3_256_Final(wc_Sha3* sha3, byte* hash);
278
309void wc_Sha3_256_Free(wc_Sha3*);
310
339int wc_Sha3_256_GetHash(wc_Sha3* sha3, byte* hash);
340
369int wc_Sha3_256_Copy(wc_Sha3* sha3, wc_Sha3* dst);
370
397int wc_InitSha3_384(wc_Sha3* sha3, void* heap, int devId);
398
430int wc_Sha3_384_Update(wc_Sha3* sha, const byte* data, word32 len);
431
462int wc_Sha3_384_Final(wc_Sha3* sha3, byte* hash);
463
494void wc_Sha3_384_Free(wc_Sha3*);
495
524int wc_Sha3_384_GetHash(wc_Sha3* sha3, byte* hash);
525
554int wc_Sha3_384_Copy(wc_Sha3* sha3, wc_Sha3* dst);
555
582int wc_InitSha3_512(wc_Sha3* sha3, void* heap, int devId);
583
615int wc_Sha3_512_Update(wc_Sha3* sha, const byte* data, word32 len);
616
647int wc_Sha3_512_Final(wc_Sha3* sha3, byte* hash);
648
679void wc_Sha3_512_Free(wc_Sha3*);
680
709int wc_Sha3_512_GetHash(wc_Sha3* sha3, byte* hash);
710
739int wc_Sha3_512_Copy(wc_Sha3* sha3, wc_Sha3* dst);
740
767int wc_InitShake128(wc_Shake* shake, void* heap, int devId);
768
800int wc_Shake128_Update(wc_Shake* sha, const byte* data, word32 len);
801
832int wc_Shake128_Final(wc_Shake* shake, byte* hash);
833
866int wc_Shake128_Absorb(wc_Shake* sha, const byte* data, word32 len);
867
901int wc_Shake128_SqueezeBlocks(wc_Shake* shake, byte* out, word32 blockCnt);
902
933void wc_Shake128_Free(wc_Shake*);
934
963int wc_Shake128_GetHash(wc_Shake* shake, byte* hash);
964
993int wc_Shake128_Copy(wc_Shake* shake, wc_Shake* dst);
994
1021int wc_InitShake256(wc_Shake* shake, void* heap, int devId);
1022
1054int wc_Shake256_Update(wc_Shake* sha, const byte* data, word32 len);
1055
1087int wc_Shake256_Final(wc_Shake* shake, byte* hash, word32 hashLen);
1088
1121int wc_Shake256_Absorb(wc_Shake* sha, const byte* data, word32 len);
1122
1156int wc_Shake256_SqueezeBlocks(wc_Shake* shake, byte* out, word32 blockCnt);
1157
1188void wc_Shake256_Free(wc_Shake*);
1189
1218int wc_Shake256_GetHash(wc_Shake* shake, byte* hash);
1219
1248int 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.