Creates an ARC2 key object from the given key value that can later be used for encryption and/or decryption.
#include "huarc2.h"
int hu_ARC2KeySet(sb_Params arc2Params, size_t keyLen, const unsigned char *keyValue, sb_Key *arc2Key, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The ARC2 parameters object.
The length (in bytes) of the ARC2 key value. The maximum allowable length is SB_ARC2_MAX_KEY_SIZE.
The key value.
An ARC2 key object pointer.
A global 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.
keyValue is NULL.
The arc2Key key object pointer is NULL.
Memory allocation failure.
Success.