Creates an IDLC parameters object for the specified type of IDLC domain parameter set.
#include "huidlc.h"
int hu_IDLCParamsCreate(int paramset, sb_RNGCtx rngCtx, sb_YieldCtx yieldCtx, sb_Params *idlcParams, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A parameter set identifier. The acceptable values are one of the HU_IDLC_GROUP_* macros.
An RNG context. (Optional - set to NULL if key generation will not be performed.)
A yield context. (Optional - set to NULL if yielding is not required.)
The IDLC parameters object pointer.
A global context.
This IDLC parameter object can be used for DH.
An RNG context must be supplied if key generation will be performed. A yielding context must be supplied if yielding will be performed.
For IPSec Groups 1, 2 and 5, and wTLS Groups 1 and 2, private keys may be as large as 160 bits.
For IPSec Group 14, private keys may be as large as 224 bits; for IPSec Group 15, 264 bits; for IPSec Group 16, 304 bits; for IPSec 17, 344 bits; for IPSec Group 18, 384 bits.
The idlcParams object pointer is NULL.
The parameter set identifier is invalid.
Memory allocation failure.
Success.