QuickHash Library Type Library

HMAC_Update

int HMAC_Update( [ in, out ]HMAC_Context* pContext, [in, size_is( nSrcLength ) ]const void* pSrc, 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] A memory buffer that is used as the context.

     Note. All predefined types are specified in the Predefined Types List.

 pSrc

    [in] A continuous memory block with which to update the context.

 nSrcLength

    [in] Length in bytes of the memory block.

Remarks

Updates the context specified by pContext with the memory block specified 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 HMAC_Update, call HMAC_Final or HMAC_FinalHex.

Note. Before the first call to HMAC_Update, HMAC_UpdateStr, HMAC_Final or HMAC_FinalHex functions, the context must be initialized with HMAC_Init or HMAC_InitKeyStr.

VB Example

See the example for HMAC_Final.

Type Library Overview   |   Type Library Functions   |   Useful Links   |   HashCalc

 

See Also    HMAC_UpdateStr, HMAC_Final, HMAC_FinalHex, HMAC_Init, HMAC_InitKeyStr


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about QuickHash Library