Creates an ARC4 key object of the specified length from random data that can later be used for encryption and/or decryption.
#include "huarc4.h"
int hu_ARC4KeyGen(sb_Params arc4Params, size_t keyLen, sb_Key *arc4Key, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 parameters object.
The length (in bytes) of the ARC4 key value. The maximum allowable length is SB_ARC4_MAX_KEY_LEN.
The ARC4 key object pointer.
A global context.
The ARC4 parameter object must have been created with an RNG context.
The arc4Params parameters object is NULL.
The tag for the params object is not of the expected type.
keyLen is an invalid key length.
The arc4Key object pointer is NULL.
Memory allocation failure.
Success.