hu_DESEnd()

Destroys an DES context object.

Synopsis:

#include "hudes.h"
 
int hu_DESEnd(sb_Context *desContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

desContext

A DES context object pointer.

sbCtx

A global context.

Library:

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

Description:

This function must be called to terminate an encryption or decryption operation. A DES context must be destroyed before the corresponding DES key object and DES parameters object are destroyed.

Returns:

SB_ERR_NULL_CONTEXT_PTR

The desContext object pointer is NULL.

SB_ERR_NULL_CONTEXT

The desContext object is NULL.

SB_ERR_BAD_CONTEXT

The desContext object is invalid.

SB_SUCCESS

Success.