Retrieves the key values and their lengths from an ECC private and/or public key object.
#include "huecc.h"
int hu_ECCKeyGet(sb_Params eccParams, 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 ECC parameters object.
An ECC private key object.
An ECC 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 key value buffer is NULL, then this function will set the correct length of the key value in the length argument. If the buffer is not NULL but buffer length is too small, this function will return an error and also will set the correct length of the key value in length argument.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
Both the private key 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.
Success.