| QuickHash Library | Type Library |
|
QHASH_BlockHMAC
int QHASH_BlockHMAC( [ in ]int nAlgID, [ out ]QHASH_Digest *pDigest,[ in, size_is( nSrcLength ) ]const void* pSrc, [ in ] int nSrcLength,[ in, size_is( nKeyLength ) ]const void* pKey, [ in ] int nKeyLength );
Return value
Zero if calculation is successful, otherwise nonzero.
Note. All possible return values are specified in the Error Codes List.
ParametersnAlgID
[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.
pDigest
[out] The memory buffer that will receive the HMAC.
Note. All predefined types are specified in the Predefined Types List.
pSrc
[in] A continuous memory block for which to calculate the HMAC.
nSrcLength
[in] Length in bytes of the memory block.
pKey
[in] The key which represents a continuous memory block.
nKeyLength
[in] Length in bytes of the key.
Remarks
Calculates the HMAC for the continuous memory block specified by pSrc using the key specified by pKey. The HMAC is retrieved in the pDigest memory buffer.
VB Example
|
Type Library Overview | Type Library Functions | Useful Links | HashCalc
See Also QHASH_BlockHexHMAC, QHASH_StringHMAC, QHASH_FileHMAC, QHASH_ConvertToHex
| Send Feedback to SlavaSoft Inc. | Tell a friend about QuickHash Library |