hu_IDLCKeyGen()

Creates an IDLC private key object from random data, and, optionally, the corresponding public key object.

Synopsis:

#include "huidlc.h"
 
int hu_IDLCKeyGen(sb_Params idlcParams, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

idlcParams

An IDLC parameters object.

privateKey

The private key object pointer.

publicKey

The public key object pointer.

sbCtx

A global context.

Library:

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

Description:

The IDLC parameter object must have been created with an RNG context.

Returns:

SB_ERR_NULL_PARAMS

The idlcParams object is NULL.

SB_ERR_BAD_PARAMS

The tag for the params object is not of the expected type.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.