Creates an DES key object of the specified length from random data that can later be used for encryption and/or decryption.
#include "hudes.h"
int hu_DESKeyGen(sb_Params desParams, sb_Key *desKey, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A DES parameters object.
The DES key object pointer.
A global context.
The DES parameter object must have been created with an RNG context.
If the parity mode is SB_DES_PARITY_ON, the encryption keys will be generated with odd parity.
If the weak key mode is SB_DES_WEAK_KEY_ON, the encryption keys will be generated such that they will not match a known weak key.
The desParams object is NULL.
The tag for the params object is not of the expected type.
The desKey object pointer is NULL.
Memory allocation failure.
Success.