Creates an ECC private and/or public key object from the given key value(s).
#include "huecc.h"
int hu_ECCKeySet(sb_Params eccParams, size_t privateKeyLen, const unsigned char *privateKeyValue, size_t publicKeyLen, const unsigned char *publicKeyValue, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
The length (in bytes) of the private key value.
The private key value.
The length (in bytes) of the public key value.
The public key value.
The private key object pointer.
The public key object pointer.
A global context.
If both the private and public key values are supplied, then a private key and/or a public key object can be created. These objects will be created from the corresponding key values.
If only a private key value is supplied, then a private key and/or a public key object can be created. The public key will be computed from the private key.
If only a public key value is supplied, then only a public key object can be created.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
The private key value is NULL.
The private key length is invalid.
The public key value is NULL.
The public key length is invalid.
The public key value is invalid.
The private key value is invalid.
Memory allocation failure.
Success.