Creates an ARC4 key object from the given key value that can later be used for encryption and/or decryption.
#include "huarc4.h"
int hu_ARC4KeySet(sb_Params arc4Params, size_t keyLen, const unsigned char *keyValue, 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 key value.
The ARC4 key object pointer.
A global 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.
Key value is NULL.
The arc4Key object pointer is NULL.
Memory allocation failure.
Success.