|
QuickHash Library |
API |
|
SL_HMAC_Update
int SL_HASHCALL SL_HMAC_Update( void*
pContext, const void* pSrc, unsigned int nSrcLength
);
Return value
Nonzero if update is successful, otherwise 0. In particular, this function
returns 0 when the context was improperly initialized.
Parameters
pContext
[in/out] Pointer to the context.
pSrc
[in] Pointer to the
continuous memory block with which to update the context.
nSrcLength
[in] Length in bytes
of the memory block.
Remarks
Updates the context pointed by pContext with the memory block
pointed by pSrc. Call this function for each continuous memory
block of the data for which the HMAC is calculated. To retrieve the HMAC after using
SL_HMAC_Update, call SL_HMAC_Final or SL_HMAC_FinalHex.
Example
See the example for
SL_HMAC_Final.
HMAC API Overview
| HMAC API Functions
|
Useful Links | HashCalc
See Also
SL_HMAC_UpdateStr,
SL_HMAC_Final,
SL_HMAC_FinalHex,
SL_HMAC_Init,
SL_HMAC_InitKeyStr
|