Retrieves the key values and their lengths from an IDLC private and/or public key object.
#include "huidlc.h"
int hu_IDLCKeyGet(sb_Params idlcParams, sb_PrivateKey privateKey, sb_PublicKey publicKey, size_t *privateKeyLen, unsigned char *privateKeyValue, size_t *publicKeyLen, unsigned char *publicKeyValue, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An IDLC parameters object.
An IDLC private key object.
An IDLC public key object.
The length (in bytes) of the private key buffer.
The private key buffer.
The length (in bytes) of the public key buffer.
The public key buffer.
A global context.
If the length of the key value is known, a pointer to a buffer large enough to hold the key value should be passed in the key value buffer and its length in the corresponding length argument. This function will copy the key value into the buffer and set the actual length of the key value in the length argument.
If keyValue is NULL, then this function will set the correct length of the key value in keyLen. If keyValue is not NULL but keyLen is too small, this function will return an error.
The idlcParams object is NULL.
The tag for the params object is not of the expected type.
Both of the private and public key objects are NULL.
The private key object is invalid.
The private key buffer length is invalid.
The public key object is invalid.
The public key buffer length is invalid.
The length of the key buffer is NULL.
The private key buffer cannot be retrieved.
Success.