|QuickHash Library||Type Library|
BSTR QHASH_FileHexHMAC( [ in ] int nAlgID, [ in , string ] unsigned char* pszFileName,[ in , string ] unsigned char* pKey, [ in ] boolean bUpper );
The hexadecimal representation of the HMAC.Parameters
[in] The ID of the hash algorithm selected for calculations. For example, nAlgID has to be set to SHA1_ALGID when you need to calculate the HMAC using SHA-1 hash algorithm.
Note. All supported hash algorithms with their corresponding IDs are specified in the Predefined Constants List.
[in] A null-terminated string specifying the name of the file for which to calculate the HMAC.
[in] The key which represents a null-terminated string.
[in] Uppercase flag. If bUpper is False, the received HMAC represents a lowercase string, otherwise it represents an uppercase string.
Calculates and returns the HMAC for the file specified by pszFileName using the key specified by pKey. The HMAC is returned as a hexadecimal string.
Note. If the result is an empty string call QHASH_GetLastError function for the error code.
Type Library Overview | Type Library Functions | Useful Links | HashCalc
See Also QHASH_FileHMAC, QHASH_BlockHexHMAC, QHASH_StringHexHMAC, QHASH_GetLastError
|Send Feedback to SlavaSoft Inc.||Tell a friend about QuickHash Library|