hu_DESParamsGet()

Retrieves settings from a DES parameters object.

Synopsis:

#include "hudes.h"
 
int hu_DESParamsGet(sb_Params desParams, int *algorithm, int *mode, int *parity, int *weakKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

desParams

A DES parameters object.

algorithm

The DES algorithm.

mode

The mode of operation.

parity

The key parity mode.

weakKey

The weak key detection mode.

sbCtx

A global context.

Library:

libhuapi (For the qcc command, use the -l huapi option to link against this library)

Description:

Returns:

SB_ERR_NULL_PARAMS

The desParams object is NULL.

SB_ERR_BAD_PARAMS

The tag for the params object is not of the expected type.

SB_ERR_NULL_OUTPUT_BUF

All output pointers are NULL.

SB_SUCCESS

Success.