Retrieves the key values and their lengths from an DES key object.
#include "hudes.h"
int hu_DESKeyGet(sb_Params desParams, sb_Key desKey, size_t *key1Len, unsigned char *key1Value, size_t *key2Len, unsigned char *key2Value, size_t *key3Len, unsigned char *key3Value, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A DES parameters object.
A DES key object pointer.
The length (in bytes) of key1Value.
Key 1 value.
The length (in bytes) of key2Value. Ignored if the mode is SB_DES_DES.
Key 2 value. Ignored if the mode is SB_DES_DES.
The length (in bytes) of key3Value. Ignored if the mode is SB_DES_DES.
Key 3 value. Ignored if the mode is SB_DES_DES.
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.
Key object is NULL.
Key object is invalid.
Key length is NULL.
Key value buffer length is invalid.
Success.