Creates an RSA parameters object for the specified modulus size.
#include "hursa.h"
int hu_RSAParamsCreate(size_t modulusSize, sb_RNGCtx rngContext, sb_YieldCtx yieldCtx, sb_Params *rsaParams, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The length (in bits) of the RSA modulus. This value must be greater than or equal to 512.
An RNG context. (Optional - set to NULL if key generation and encryption will not be performed.)
A yield context. (Optional - set to NULL if yielding is not required.)
The RSA parameters object pointer.
A global context.
An RNG context must be supplied if key generation or encryption will be performed. A yielding context must be supplied if yielding will be performed.
The modulus size is invalid.
The rsaParams object pointer is NULL.
Memory allocation failure.
Success.