My Project
|
Functions | |
int | wc_ShaHash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha224Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha256Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha384Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha512Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha3_224Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha3_256Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha3_384Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Sha3_512Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Shake128Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_Shake256Hash (const byte *data, word32 len, byte *hash) |
Convenience function, handles all the hashing and places the result into hash. More... | |
int | wc_InitSha (wc_Sha *) |
This function initializes SHA. This is automatically called by wc_ShaHash. More... | |
int | wc_ShaUpdate (wc_Sha *sha, const byte *data, word32 len) |
Can be called to continually hash the provided byte array of length len. More... | |
int | wc_ShaFinal (wc_Sha *sha, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha struct. More... | |
void | wc_ShaFree (wc_Sha *) |
Used to clean up memory used by an initialized Sha struct. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
int | wc_ShaGetHash (wc_Sha *sha, byte *hash) |
Gets hash data. Result is placed into hash. Does not reset state of sha struct. More... | |
int | wc_InitSha256 (wc_Sha256 *) |
This function initializes SHA256. This is automatically called by wc_Sha256Hash. More... | |
int | wc_Sha256Update (wc_Sha256 *sha, const byte *data, word32 len) |
Can be called to continually hash the provided byte array of length len. More... | |
int | wc_Sha256Final (wc_Sha256 *sha256, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct. More... | |
void | wc_Sha256Free (wc_Sha256 *) |
Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
int | wc_Sha256GetHash (wc_Sha256 *sha256, byte *hash) |
Gets hash data. Result is placed into hash. Does not reset state of sha256 struct. More... | |
int | wc_InitSha224 (wc_Sha224 *) |
Used to initialize a Sha224 struct. More... | |
int | wc_Sha224Update (wc_Sha224 *sha224, const byte *data, word32 len) |
Can be called to continually hash the provided byte array of length len. More... | |
int | wc_Sha224Final (wc_Sha224 *sha224, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct. More... | |
int | wc_InitSha3_224 (wc_Sha3 *sha3, void *heap, int devId) |
This function initializes SHA3-224. This is automatically called by wc_Sha3_224Hash. More... | |
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. More... | |
int | wc_Sha3_224_Final (wc_Sha3 *sha3, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct. More... | |
void | wc_Sha3_224_Free (wc_Sha3 *) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
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. More... | |
int | wc_Sha3_224_Copy (wc_Sha3 *sha3, wc_Sha3 *dst) |
Copy the state of the hash. More... | |
int | wc_InitSha3_256 (wc_Sha3 *sha3, void *heap, int devId) |
This function initializes SHA3-256. This is automatically called by wc_Sha3_256Hash. More... | |
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. More... | |
int | wc_Sha3_256_Final (wc_Sha3 *sha3, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct. More... | |
void | wc_Sha3_256_Free (wc_Sha3 *) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
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. More... | |
int | wc_Sha3_256_Copy (wc_Sha3 *sha3, wc_Sha3 *dst) |
Copy the state of the hash. More... | |
int | wc_InitSha3_384 (wc_Sha3 *sha3, void *heap, int devId) |
This function initializes SHA3-384. This is automatically called by wc_Sha3_384Hash. More... | |
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. More... | |
int | wc_Sha3_384_Final (wc_Sha3 *sha3, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct. More... | |
void | wc_Sha3_384_Free (wc_Sha3 *) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
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. More... | |
int | wc_Sha3_384_Copy (wc_Sha3 *sha3, wc_Sha3 *dst) |
Copy the state of the hash. More... | |
int | wc_InitSha3_512 (wc_Sha3 *sha3, void *heap, int devId) |
This function initializes SHA3-512. This is automatically called by wc_Sha3_512Hash. More... | |
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. More... | |
int | wc_Sha3_512_Final (wc_Sha3 *sha3, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct. More... | |
void | wc_Sha3_512_Free (wc_Sha3 *) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
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. More... | |
int | wc_Sha3_512_Copy (wc_Sha3 *sha3, wc_Sha3 *dst) |
Copy the state of the hash. More... | |
int | wc_InitShake128 (wc_Shake *shake, void *heap, int devId) |
This function initializes SHAKE-128. This is automatically called by wc_Shake128Hash. More... | |
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. More... | |
int | wc_Shake128_Final (wc_Shake *shake, byte *hash) |
Finalizes hashing of data. Result is placed into hash. Resets state of shake struct. More... | |
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. More... | |
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. More... | |
void | wc_Shake128_Free (wc_Shake *) |
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
int | wc_Shake128_GetHash (wc_Shake *shake, byte *hash) |
Gets hash data. Result is placed into hash. Does not reset state of shake struct. More... | |
int | wc_Shake128_Copy (wc_Shake *shake, wc_Shake *dst) |
Copy the state of the hash. More... | |
int | wc_InitShake256 (wc_Shake *shake, void *heap, int devId) |
This function initializes SHAKE-256. This is automatically called by wc_Shake256Hash. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | wc_Shake256_Free (wc_Shake *) |
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
int | wc_Shake256_GetHash (wc_Shake *shake, byte *hash) |
Gets hash data. Result is placed into hash. Does not reset state of shake struct. More... | |
int | wc_Shake256_Copy (wc_Shake *shake, wc_Shake *dst) |
Copy the state of the hash. More... | |
int | wc_InitSha512 (wc_Sha512 *) |
This function initializes SHA512. This is automatically called by wc_Sha512Hash. More... | |
int | wc_Sha512Update (wc_Sha512 *sha, const byte *data, word32 len) |
Can be called to continually hash the provided byte array of length len. More... | |
int | wc_Sha512Final (wc_Sha512 *sha512, byte *hash) |
Finalizes hashing of data. Result is placed into hash. More... | |
int | wc_InitSha384 (wc_Sha384 *) |
This function initializes SHA384. This is automatically called by wc_Sha384Hash. More... | |
int | wc_Sha384Update (wc_Sha384 *sha, const byte *data, word32 len) |
Can be called to continually hash the provided byte array of length len. More... | |
int | wc_Sha384Final (wc_Sha384 *sha384, byte *hash) |
Finalizes hashing of data. Result is placed into hash. More... | |
int wc_InitSha | ( | wc_Sha * | ) |
This function initializes SHA. This is automatically called by wc_ShaHash.
sha | pointer to the sha structure to use for encryption |
Example
int wc_InitSha224 | ( | wc_Sha224 * | ) |
Used to initialize a Sha224 struct.
sha224 | Pointer to a Sha224 struct to initialize. |
Example
int wc_InitSha256 | ( | wc_Sha256 * | ) |
This function initializes SHA256. This is automatically called by wc_Sha256Hash.
sha256 | pointer to the sha256 structure to use for encryption |
Example
int wc_InitSha384 | ( | wc_Sha384 * | ) |
This function initializes SHA384. This is automatically called by wc_Sha384Hash.
sha384 | pointer to the sha384 structure to use for encryption |
Example
int wc_InitSha3_224 | ( | wc_Sha3 * | sha3, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHA3-224. This is automatically called by wc_Sha3_224Hash.
sha3 | pointer to the sha3 structure to use for encryption |
Example
int wc_InitSha3_256 | ( | wc_Sha3 * | sha3, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHA3-256. This is automatically called by wc_Sha3_256Hash.
sha3 | pointer to the sha3 structure to use for encryption |
Example
int wc_InitSha3_384 | ( | wc_Sha3 * | sha3, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHA3-384. This is automatically called by wc_Sha3_384Hash.
sha3 | pointer to the sha3 structure to use for encryption |
Example
int wc_InitSha3_512 | ( | wc_Sha3 * | sha3, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHA3-512. This is automatically called by wc_Sha3_512Hash.
sha3 | pointer to the sha3 structure to use for encryption |
Example
int wc_InitSha512 | ( | wc_Sha512 * | ) |
This function initializes SHA512. This is automatically called by wc_Sha512Hash.
sha512 | pointer to the sha512 structure to use for encryption |
Example
int wc_InitShake128 | ( | wc_Shake * | shake, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHAKE-128. This is automatically called by wc_Shake128Hash.
shake | pointer to the shake structure to use for encryption |
Example
int wc_InitShake256 | ( | wc_Shake * | shake, |
void * | heap, | ||
int | devId | ||
) |
This function initializes SHAKE-256. This is automatically called by wc_Shake256Hash.
shake | pointer to the shake structure to use for encryption |
Example
int wc_Sha224Final | ( | wc_Sha224 * | sha224, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct.
sha224 | pointer to the sha224 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
int wc_Sha224Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha224Update | ( | wc_Sha224 * | sha224, |
const byte * | data, | ||
word32 | len | ||
) |
Can be called to continually hash the provided byte array of length len.
sha224 | Pointer to the Sha224 structure to use for encryption. |
data | Data to be hashed. |
len | Length of data to be hashed. |
Example
int wc_Sha256Final | ( | wc_Sha256 * | sha256, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct.
sha256 | pointer to the sha256 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Sha256Free | ( | wc_Sha256 * | ) |
Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha256 | Pointer to the sha256 structure to be freed. |
Example
int wc_Sha256GetHash | ( | wc_Sha256 * | sha256, |
byte * | hash | ||
) |
Gets hash data. Result is placed into hash. Does not reset state of sha256 struct.
sha256 | pointer to the sha256 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
int wc_Sha256Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha256Update | ( | wc_Sha256 * | sha, |
const byte * | data, | ||
word32 | len | ||
) |
Can be called to continually hash the provided byte array of length len.
sha256 | pointer to the sha256 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha384Final | ( | wc_Sha384 * | sha384, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash.
sha384 | pointer to the sha384 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
int wc_Sha384Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha384Update | ( | wc_Sha384 * | sha, |
const byte * | data, | ||
word32 | len | ||
) |
Can be called to continually hash the provided byte array of length len.
sha384 | pointer to the sha384 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha3_224_Copy | ( | wc_Sha3 * | sha3, |
wc_Sha3 * | dst | ||
) |
Copy the state of the hash.
sha3 | pointer to the sha3 structure to copy |
dst | pointer to the sha3 structure to copy into |
Example
int wc_Sha3_224_Final | ( | wc_Sha3 * | sha3, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Sha3_224_Free | ( | wc_Sha3 * | ) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha3 | Pointer to the sha3 structure to be freed. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha3_224Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha3_256_Copy | ( | wc_Sha3 * | sha3, |
wc_Sha3 * | dst | ||
) |
Copy the state of the hash.
sha3 | pointer to the sha3 structure to copy |
dst | pointer to the sha3 structure to copy into |
Example
int wc_Sha3_256_Final | ( | wc_Sha3 * | sha3, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Sha3_256_Free | ( | wc_Sha3 * | ) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha3 | Pointer to the sha3 structure to be freed. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha3_256Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha3_384_Copy | ( | wc_Sha3 * | sha3, |
wc_Sha3 * | dst | ||
) |
Copy the state of the hash.
sha3 | pointer to the sha3 structure to copy |
dst | pointer to the sha3 structure to copy into |
Example
int wc_Sha3_384_Final | ( | wc_Sha3 * | sha3, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Sha3_384_Free | ( | wc_Sha3 * | ) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha3 | Pointer to the sha3 structure to be freed. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha3_384Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha3_512_Copy | ( | wc_Sha3 * | sha3, |
wc_Sha3 * | dst | ||
) |
Copy the state of the hash.
sha3 | pointer to the sha3 structure to copy |
dst | pointer to the sha3 structure to copy into |
Example
int wc_Sha3_512_Final | ( | wc_Sha3 * | sha3, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha3 struct.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Sha3_512_Free | ( | wc_Sha3 * | ) |
Resets the wc_Sha3 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha3 | Pointer to the sha3 structure to be freed. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
sha3 | pointer to the sha3 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Sha3_512Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha512Final | ( | wc_Sha512 * | sha512, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash.
sha512 | pointer to the sha512 structure to use for encryption |
hash | Byte array to hold hash value. |
Example
int wc_Sha512Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_Sha512Update | ( | wc_Sha512 * | sha, |
const byte * | data, | ||
word32 | len | ||
) |
Can be called to continually hash the provided byte array of length len.
sha512 | pointer to the sha512 structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_ShaFinal | ( | wc_Sha * | sha, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of sha struct.
sha | pointer to the sha structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_ShaFree | ( | wc_Sha * | ) |
Used to clean up memory used by an initialized Sha struct. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
sha | Pointer to the Sha struct to free. |
Example
int wc_ShaGetHash | ( | wc_Sha * | sha, |
byte * | hash | ||
) |
Gets hash data. Result is placed into hash. Does not reset state of sha struct.
sha | pointer to the sha structure to use for encryption |
hash | Byte array to hold hash value. |
Example
int wc_ShaHash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
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.
shake | pointer to the shake structure to use for encryption |
data | the data to be absorbed |
len | length of data to be absorbed |
Example
int wc_Shake128_Copy | ( | wc_Shake * | shake, |
wc_Shake * | dst | ||
) |
Copy the state of the hash.
shake | pointer to the shake structure to copy |
dst | pointer to the shake structure to copy into |
Example
int wc_Shake128_Final | ( | wc_Shake * | shake, |
byte * | hash | ||
) |
Finalizes hashing of data. Result is placed into hash. Resets state of shake struct.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold hash value. |
Example
void wc_Shake128_Free | ( | wc_Shake * | ) |
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
shake | Pointer to the shake structure to be freed. |
Example
int wc_Shake128_GetHash | ( | wc_Shake * | shake, |
byte * | hash | ||
) |
Gets hash data. Result is placed into hash. Does not reset state of shake struct.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold output. |
blocks | Number of blocks to squeeze out. Each block is WC_SHA3_128_BLOCK_SIZE bytes in length. |
Example
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.
shake | pointer to the shake structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Shake128Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
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.
shake | pointer to the shake structure to use for encryption |
data | the data to be absorbed |
len | length of data to be absorbed |
Example
int wc_Shake256_Copy | ( | wc_Shake * | shake, |
wc_Shake * | dst | ||
) |
Copy the state of the hash.
shake | pointer to the shake structure to copy |
dst | pointer to the shake structure to copy into |
Example
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.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold hash value. |
hashLen | Size of hash in bytes. |
Example
void wc_Shake256_Free | ( | wc_Shake * | ) |
Resets the wc_Shake structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined.
shake | Pointer to the shake structure to be freed. |
Example
int wc_Shake256_GetHash | ( | wc_Shake * | shake, |
byte * | hash | ||
) |
Gets hash data. Result is placed into hash. Does not reset state of shake struct.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold hash value. |
Example
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.
shake | pointer to the shake structure to use for encryption |
hash | Byte array to hold output. |
blocks | Number of blocks to squeeze out. Each block is WC_SHA3_256_BLOCK_SIZE bytes in length. |
Example
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.
shake | pointer to the shake structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example
int wc_Shake256Hash | ( | const byte * | data, |
word32 | len, | ||
byte * | hash | ||
) |
Convenience function, handles all the hashing and places the result into hash.
data | the data to hash |
len | the length of data |
hash | Byte array to hold hash value. |
Example
int wc_ShaUpdate | ( | wc_Sha * | sha, |
const byte * | data, | ||
word32 | len | ||
) |
Can be called to continually hash the provided byte array of length len.
sha | pointer to the sha structure to use for encryption |
data | the data to be hashed |
len | length of data to be hashed |
Example