Retrieves the key value and its length from an ARC4 key object.
#include "huarc4.h"
int hu_ARC4KeyGet(sb_Params arc4Params, sb_Key arc4Key, size_t *keyLen, unsigned char *keyValue, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC4 parameters object.
An ARC4 key object.
The length (in bytes) of the ARC4 key value.
The key value.
A global context.
If the length of the key value is known, a pointer to a buffer large enough to hold the key value should be passed in keyValue and its length in keyLen. This function will copy the key value into keyValue and set the actual length of the key value in keyLen.
If keyValue is NULL, then this function will set the correct length of the key value in keyLen. If keyValue is not NULL but keyLen is too small, this function will return an error and also will set the correct length of the key value in keyLen.
The arc4Key object is NULL.
The arc4Key object is invalid.
keyLen is NULL.
The length of the keyValue buffer is invalid.
Success.