GEnerate IDLC domain parameters based on ANSI X9.42, and set them into the IDLC parameters object.
#include "huidlc.h"
int hu_IDLCANSIParamsGen(size_t pSize, size_t qSize, sb_RNGCtx rngCtx, sb_YieldCtx yieldCtx, sb_Params *idlcParams, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The length (in bits) of the prime modulus p. The length must be greater than or equal to 512.
The length (in bits) of the prime divisor q. The length must be greater than or equal to 160 and less than pSize.
An RNG context.
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 or DSA.
An RNG context must be supplied. A yielding context must be supplied if yielding will be performed.
This function will generate values p, q and g such that p and q are prime, q is a divisor of (p-1) and g has order q modulo p. p will have bitlength pSize and q will have bitlength qSize.
The idlcParams object pointer is NULL.
The length of p and/or q was invalid.
Memory allocation failure.
Success.