Creates an RSA private and public key object from random data.
#include "hursa.h"
int hu_RSAKeyGen(sb_Params rsaParams, size_t eLen, const unsigned char *e, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An RSA parameters object.
The length (in bytes) of the public exponent. (Optional)
The public exponent. (Optional - set to NULL if the default value should be used.)
The private key object pointer.
The public key object pointer.
A global context.
If the public exponent is not supplied (i.e. set to NULL), this function will assume a default value of 65537 (0x10001).
The rsaParams object is NULL.
The tag for the params object is not of the expected type.
The private and/or public key object pointers are NULL.
The length of the public exponent is invalid.
Memory allocation failure.
Success.