QuickHash Library API

SL_HMAC_UpdateStr

int SL_HASHCALL SL_HMAC_UpdateStr( void* pContext, const char* pSrc );

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 null-terminated string with which to update the context.

Remarks

Updates the context pointed by pContext with the null-terminated string pointed by pSrc. Call this function for each null-terminated string for which the HMAC is calculated. To retrieve the HMAC after using SL_HMAC_UpdateStr, call SL_HMAC_Final or SL_HMAC_FinalHex.

Note. The call SL_HMAC_UpdateStr( pContext, pSrc );

            is equivalent to the call SL_HMAC_Update( pContext, pSrc, strlen( pSrc ) );

 

HMAC API Overview   |   HMAC API Functions   |   Useful Links   |   HashCalc

 

See Also    SL_HMAC_Update, SL_HMAC_Final, SL_HMAC_FinalHex, SL_HMAC_Init, SL_HMAC_InitKeyStr


 

 

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