Generate a private and public key object from random data.
#include "hupkc.h"
int hu_KeyPairGen(sb_Params params, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A parameters object pointer.
The private key object pointer.
The public key object pointer.
A global context.
For ECC and IDLC params objects, the params completely specifies the keys. For RSA, keys are generated with the default public exponent (see hu_RSAKeyGen() for more details).
The params object is NULL.
The tag for the params object is not of the expected type.
The privateKey object is NULL.
The publicKey object is NULL.
Success.