hu_ARC4ParamsCreate()

Creates an ARC4 parameters object.

Synopsis:

#include "huarc4.h"
 
int hu_ARC4ParamsCreate(sb_RNGCtx rngContext, sb_YieldCtx yieldCtx, sb_Params *arc4Params, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

rngContext

An RNG context. (Optional - set to NULL if key generation will not be performed.)

yieldCtx

A yield context. (Optional - set to NULL if yielding is not required.)

arc4Params

The ARC4 parameters object pointer.

sbCtx

A global context.

Library:

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

Description:

An RNG context and/or yielding context must be supplied if key generation and/or yielding will be performed, respectively.

Returns:

SB_ERR_NULL_PARAMS_PTR

The arc4Params parameters object pointer is NULL.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.