Creates a DES parameters object.
#include "hudes.h"
int hu_DESParamsCreate(int algorithm, int mode, int parity, int weakKey, sb_RNGCtx rngContext, sb_YieldCtx yieldCtx, sb_Params *desParams, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
The DES algorithm. The acceptable values are SB_DES_DES, SB_DES_TDES and SB_DES_DESX.
The mode of operation. The acceptable values are SB_DES_ECB, SB_DES_CBC, SB_DES_CFB64 and SB_DES_OFB64. 0 is also acceptable since some adapters support hu_DESBeginV2().
The parity mode. The acceptable values are SB_DES_PARITY_OFF and SB_DES_PARITY_ON.
The weak key detection mode. The acceptable values are SB_DES_WEAK_KEY_OFF and SB_DES_WEAK_KEY_ON.
An RNG context. (Optional - set to NULL if key generation will not be performed.)
A yield context. (Optional - set to NULL if yielding is not required.)
The DES parameters object pointer.
A global context.
The algorithm, mode of operation, key parity and weak key settings must be specified. An RNG context and/or yielding context must be supplied if key generation and/or yielding will be performed, respectively.
The algorithm type is invalid.
The mode of operation is invalid.
The desParams object pointer is NULL.
Memory allocation failure.
Success.