Retrieves settings from an IDLC parameters object.
#include "huidlc.h"
int hu_IDLCParamsGet(sb_Params idlcParams, size_t *pSize, size_t *qSize, size_t *pLength, unsigned char *p, size_t *gLength, unsigned char *g, size_t *qLength, unsigned char *q, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An IDLC parameters object.
The length (in bits) of the prime modulus p.
The length (in bits) of the prime divisor q, if using. Otherwise, the length (in bits) of the private keys.
The length (in bytes) of the prime modulus.
Prime modulus.
The length (in bytes) of the generator. Equal to pLength.
Generator of order q.
The length (in bytes) of the prime divisor, if using. Otherwise, 0 will be returned.
Prime divisor of p-1, if using.
A global context.
If the length of a parameter is known, a pointer to a buffer large enough to hold the parameter should be passed in the appropriate argument and its length in the corresponding length argument. This function will copy the value into the buffer and set the actual length of the value in the length argument.
If a parameter argument is NULL, this function will set the correct length of the parameter in the length argument. If the argument is not NULL but the corresponding length argument is too small, this function will return an error.
Set both the parameter argument and its length to NULL for any parameters that are to be ignored.
The idlcParams object is NULL.
The tag for the params object is not of the expected type.
The length of the output buffer is invalid.
Success.