hu_ARC4End()

Destroys an ARC4 context object.

Synopsis:

#include "huarc4.h"
 
int hu_ARC4End(sb_Context *arc4Context, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

arc4Context

An ARC4 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. An ARC4 context must be destroyed before the corresponding ARC4 key object and ARC4 parameters object are destroyed.

Returns:

SB_ERR_NULL_CONTEXT_PTR

The arc4Context object pointer is NULL.

SB_ERR_NULL_CONTEXT

The arc4Context object is NULL.

SB_ERR_BAD_CONTEXT

The arc4Context object is invalid.

SB_SUCCESS

Success.