hu_DESKeyDestroy()

Destroys a DES key object.

Synopsis:

#include "hudes.h"
 
int hu_DESKeyDestroy(sb_Params desParams, sb_Key *desKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

desParams

A DES parameters object.

desKey

The DES key object pointer.

sbCtx

A global context.

Library:

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

Description:

DES contexts must be destroyed before any DES key objects. DES parameter objects must be destroyed after DES key objects.

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_KEY_PTR

The desKey object pointer is NULL.

SB_ERR_NULL_KEY

The desKey object is NULL.

SB_ERR_BAD_KEY

The desKey object is invalid.

SB_SUCCESS

Success.