hu_ECCParamsCreate()

Creates an ECC parameters object for the specified curve.

Synopsis:

#include "huecc.h"
 
int hu_ECCParamsCreate(int curve, sb_RNGCtx rngCtx, sb_YieldCtx yieldCtx, sb_Params *eccParams, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

curve

The curve identifier. The acceptable values are one of the HU_ECC_CURVE_* macros.

rngCtx

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

yieldCtx

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

eccParams

The ECC 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 must be supplied if key generation or signature generation will be performed. A yielding context must be supplied if yielding will be performed.

Returns:

SB_ERR_ECC_BAD_CURVE

The curve identifier is invalid.

SB_ERR_NULL_PARAMS_PTR

The eccParams object pointer is NULL.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus