Creates an IDLC parameters object from the given IDLC domain parameter values.
#include "huidlc.h"
int hu_IDLCDSAParamsSet(size_t pSize, size_t qSize, size_t pLength, const unsigned char *p, size_t gLength, const unsigned char *g, size_t qLength, const unsigned char *q, sb_RNGCtx rngCtx, sb_YieldCtx yieldCtx, sb_Params *idlcParams, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The size (in bits) of the prime modulus p. The size must be greater than or equal to 512.
The size (in bits) of the prime divisor q. The size must be greater than or equal to 160 and less than pSize.
The length (in bytes) of the prime modulus.
Prime modulus.
The length (in bytes) of the generator. Must be less than or equal to pLength.
Generator of order q.
The length (in bytes) of the prime divisor.
Prime divisor of p-1.
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 DSA.
An RNG context must be supplied. A yielding context must be supplied if yielding will be performed.
The values should satisfy the following properties: p and q are prime, q is a divisor of (p-1), and g has order q modulo p. The bit length of prime p must be set in pSize and that of prime q in qSize.
The idlcParams object pointer is NULL.
The prime modulus value is NULL.
The prime divisor value is NULL.
The generator value is NULL.
The bit size of p and/or q is invalid.
The length of the p, q and/or g buffers is invalid.
Memory allocation failure.
Success.