|QuickHash Library||Type Library|
int QHASH_StringHMAC( [ in ]int nAlgID, [ out ]QHASH_Digest *pDigest, [ in , string ] unsigned char* pSrc,[ in , string ] unsigned char* pKey );
Zero if calculation is successful, otherwise nonzero.
Note. All possible return values are specified in the Error Codes List.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.
[out] The memory buffer that will receive the HMAC.
Note. All predefined types are specified in the Predefined Types List.
[in] A null-terminated string for which to calculate the HMAC.
[in] The key which represents a null-terminated string.
Calculates the HMAC for the null-terminated string specified by pSrc using the key specified by pKey. The HMAC is retrieved in the pDigest memory buffer.
Type Library Overview | Type Library Functions | Useful Links | HashCalc
See Also QHASH_StringHexHMAC, QHASH_BlockHMAC, QHASH_FileHMAC, QHASH_ConvertToHex
|Send Feedback to SlavaSoft Inc.||Tell a friend about QuickHash Library|