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_Sha256Hash (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_Sha512Hash (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_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_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_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_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_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_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