Retrieves the key value and its length from an ARC2 key object.
#include "huarc2.h"
int hu_ARC2KeyGet(sb_Params arc2Params, sb_Key arc2Key, size_t *keyLen, unsigned char *keyValue, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ARC2 parameters object.
An ARC2 key object.
The length (in bytes) of the ARC2 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 arc2Key key object is NULL.
The arc2Key key object is invalid.
keyLen is NULL.
keyLen, the key value buffer length, is invalid.
Success.