
Functions | |
| WOLFSSL_API int | wc_ShaHash (const byte *, word32, byte *) |
| Convenience function, handles all the hashing and places the result into hash. More... | |
| WOLFSSL_API int | wc_Sha256Hash (const byte *, word32, byte *) |
| Convenience function, handles all the hashing and places the result into hash. More... | |
| WOLFSSL_API int | wc_Sha224Hash (const byte *, word32, byte *) |
| Convenience function, handles all the hashing and places the result into hash. More... | |
| WOLFSSL_API int | wc_Sha512Hash (const byte *, word32, byte *) |
| Convenience function, handles all the hashing and places the result into hash. More... | |
| WOLFSSL_API int | wc_Sha384Hash (const byte *, word32, byte *) |
| Convenience function, handles all the hashing and places the result into hash. More... | |
| WOLFSSL_API int | wc_InitSha (wc_Sha *) |
| This function initializes SHA. This is automatically called by wc_ShaHash. More... | |
| WOLFSSL_API int | wc_ShaUpdate (wc_Sha *, const byte *, word32) |
| Can be called to continually hash the provided byte array of length len. More... | |
| WOLFSSL_API int | wc_ShaFinal (wc_Sha *, byte *) |
| Finalizes hashing of data. Result is placed into hash. Resets state of sha struct. More... | |
| WOLFSSL_API 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... | |
| WOLFSSL_API int | wc_ShaGetHash (wc_Sha *, byte *) |
| Gets hash data. Result is placed into hash. Does not reset state of sha struct. More... | |
| WOLFSSL_API int | wc_InitSha256 (wc_Sha256 *) |
| This function initializes SHA256. This is automatically called by wc_Sha256Hash. More... | |
| WOLFSSL_API int | wc_Sha256Update (wc_Sha256 *, const byte *, word32) |
| Can be called to continually hash the provided byte array of length len. More... | |
| WOLFSSL_API int | wc_Sha256Final (wc_Sha256 *, byte *) |
| Finalizes hashing of data. Result is placed into hash. Resets state of sha256 struct. More... | |
| WOLFSSL_API void | wc_Sha256Free (wc_Sha256 *) |
| Resets the Sha256 structure. Note: this is only supported if you have WOLFSSL_TI_HASH defined. More... | |
| WOLFSSL_API int | wc_Sha256GetHash (wc_Sha256 *, byte *) |
| Gets hash data. Result is placed into hash. Does not reset state of sha256 struct. More... | |
| WOLFSSL_API int | wc_InitSha224 (wc_Sha224 *) |
| Used to initialize a Sha224 struct. More... | |
| WOLFSSL_API int | wc_Sha224Update (wc_Sha224 *, const byte *, word32) |
| Can be called to continually hash the provided byte array of length len. More... | |
| WOLFSSL_API int | wc_Sha224Final (wc_Sha224 *, byte *) |
| Finalizes hashing of data. Result is placed into hash. Resets state of sha224 struct. More... | |
| WOLFSSL_API int | wc_InitSha512 (wc_Sha512 *) |
| This function initializes SHA512. This is automatically called by wc_Sha512Hash. More... | |
| WOLFSSL_API int | wc_Sha512Update (wc_Sha512 *, const byte *, word32) |
| Can be called to continually hash the provided byte array of length len. More... | |
| WOLFSSL_API int | wc_Sha512Final (wc_Sha512 *, byte *) |
| Finalizes hashing of data. Result is placed into hash. More... | |
| WOLFSSL_API int | wc_InitSha384 (wc_Sha384 *) |
| This function initializes SHA384. This is automatically called by wc_Sha384Hash. More... | |
| WOLFSSL_API int | wc_Sha384Update (wc_Sha384 *, const byte *, word32) |
| Can be called to continually hash the provided byte array of length len. More... | |
| WOLFSSL_API int | wc_Sha384Final (wc_Sha384 *, byte *) |
| Finalizes hashing of data. Result is placed into hash. More... | |
| int wc_InitSha | ( | wc_Sha * | sha | ) |
This function initializes SHA. This is automatically called by wc_ShaHash.
| sha | pointer to the sha structure to use for encryption |
Example
| WOLFSSL_API 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 * | 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 * | 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 * | 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
| WOLFSSL_API int wc_Sha224Hash | ( | const byte * | , |
| word32 | , | ||
| byte * | |||
| ) |
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 * | 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
| WOLFSSL_API int wc_Sha256GetHash | ( | wc_Sha256 * | , |
| byte * | |||
| ) |
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
| WOLFSSL_API int wc_Sha256Hash | ( | const byte * | , |
| word32 | , | ||
| byte * | |||
| ) |
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 * | sha256, |
| 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
| WOLFSSL_API int wc_Sha384Hash | ( | const byte * | , |
| word32 | , | ||
| byte * | |||
| ) |
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 * | sha384, |
| 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
| WOLFSSL_API int wc_Sha512Hash | ( | const byte * | , |
| word32 | , | ||
| byte * | |||
| ) |
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 * | sha512, |
| 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 * | 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
| WOLFSSL_API int wc_ShaGetHash | ( | wc_Sha * | , |
| byte * | |||
| ) |
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
| WOLFSSL_API int wc_ShaHash | ( | const byte * | , |
| word32 | , | ||
| byte * | |||
| ) |
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