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