My Project
|
Functions | |
int | wc_HashGetOID (enum wc_HashType hash_type) |
This function will return the OID for the wc_HashType provided. More... | |
int | wc_HashGetDigestSize (enum wc_HashType hash_type) |
This function returns the size of the digest (output) for a hash_type. The returns size is used to make sure the output buffer provided to wc_Hash is large enough. More... | |
int | wc_Hash (enum wc_HashType hash_type, const byte *data, word32 data_len, byte *hash, word32 hash_len) |
This function performs a hash on the provided data buffer and returns it in the hash buffer provided. More... | |
int | wolfCrypt_Init (void) |
Used to initialize resources used by wolfCrypt. More... | |
int | wolfCrypt_Cleanup (void) |
Used to clean up resources used by wolfCrypt. More... | |
int wc_Hash | ( | enum wc_HashType | hash_type, |
const byte * | data, | ||
word32 | data_len, | ||
byte * | hash, | ||
word32 | hash_len | ||
) |
This function performs a hash on the provided data buffer and returns it in the hash buffer provided.
hash_type | A hash type from the “enum wc_HashType” such as “WC_HASH_TYPE_SHA256”. |
data | Pointer to buffer containing the data to hash. |
data_len | Length of the data buffer. |
hash | Pointer to buffer used to output the final hash to. |
hash_len | Length of the hash buffer. |
Example
int wc_HashGetDigestSize | ( | enum wc_HashType | hash_type | ) |
This function returns the size of the digest (output) for a hash_type. The returns size is used to make sure the output buffer provided to wc_Hash is large enough.
hash_type | A hash type from the “enum wc_HashType” such as “WC_HASH_TYPE_SHA256”. |
Example
int wc_HashGetOID | ( | enum wc_HashType | hash_type | ) |
This function will return the OID for the wc_HashType provided.
hash_type | A hash type from the “enum wc_HashType” such as “WC_HASH_TYPE_SHA256”. |
Example
int wolfCrypt_Cleanup | ( | void | ) |
Used to clean up resources used by wolfCrypt.
none | No parameters. |
Example
int wolfCrypt_Init | ( | void | ) |
Used to initialize resources used by wolfCrypt.
none | No parameters. |
Example