hu_ARC2KeyDestroy()

Destroys an ARC2 key object.

Synopsis:

#include "huarc2.h"
 
int hu_ARC2KeyDestroy(sb_Params arc2Params, sb_Key *arc2Key, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

arc2Params

The ARC2 parameters object.

arc2Key

The ARC2 key object pointer.

sbCtx

A global context.

Library:

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

Description:

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

Returns:

SB_ERR_NULL_PARAMS

The arc2Params parameters 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 arc2Key key object pointer is NULL.

SB_ERR_NULL_KEY

The arc2Key key object is NULL.

SB_ERR_BAD_KEY

The arc2Key key object is invalid.

SB_SUCCESS

Success.