hu_ARC4KeyDestroy()

Destroys an ARC4 key object.

Synopsis:

#include "huarc4.h"
 
int hu_ARC4KeyDestroy(sb_Params arc4Params, sb_Key *arc4Key, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

arc4Params

An ARC4 parameters object.

arc4Key

An ARC4 key object pointer.

sbCtx

A global context.

Library:

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

Description:

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

Returns:

SB_ERR_NULL_PARAMS

The arc4Params 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 arc4Key object pointer is NULL.

SB_ERR_NULL_KEY

The arc4Key object is NULL.

SB_ERR_BAD_KEY

The arc4Key object is invalid.

SB_SUCCESS

Success.