hu_HMACSHA512Hash()

Updates an HMAC-SHA-512 context with the given data.

Synopsis:

#include "husha2.h"
 
int hu_HMACSHA512Hash(sb_Context hmacContext, size_t dataBlkLen, const unsigned char *dataBlk, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

hmacContext

The HMAC-SHA-512 context object.

dataBlkLen

The length (in bytes) of the data.

dataBlk

The data buffer.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

Returns:

SB_ERR_NULL_CONTEXT

The hmacContext object is NULL.

SB_ERR_BAD_CONTEXT

The hmacContext object is invalid.

SB_ERR_NULL_INPUT_BUF

The data buffer, dataBlk, is NULL.

SB_SUCCESS

Success.