hu_HMACMD5Begin()

Creates an HMAC-MD5 context object with the given key.

Synopsis:

#include "humd5.h"
 
int hu_HMACMD5Begin(size_t keyLen, const unsigned char *key, sb_YieldCtx yieldCtx, sb_Context *hmacContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

keyLen

The length (in bytes) of the key.

key

The key value.

yieldCtx

Ignored.

hmacContext

The HMAC-MD5 context object pointer.

sbCtx

A global context.

Library:

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

Description:

Note: Yielding is not supported for HMAC operations.

Returns:

SB_ERR_NULL_CONTEXT_PTR

The hmacContext object pointer is NULL.

SB_ERR_NULL_INPUT_BUF

The key value is NULL.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.