Creates an ECC private key object from random data, and, optionally, the corresponding public key object.
#include "huecc.h"
int hu_ECCKeyGen(sb_Params eccParams, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
The private key object pointer.
The public key object pointer. If non-NULL, then a public key object is created in addition to the private key.
A global context.
The ECC parameter object must have been created with an RNG context.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
Memory allocation failure.
Success.