hu_ARC2End()

Destroys an ARC2 context object.

Synopsis:

#include "huarc2.h"
 
int hu_ARC2End(sb_Context *arc2Context, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

arc2Context

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

Returns:

SB_ERR_NULL_CONTEXT_PTR

The arc2Context context object pointer is NULL.

SB_ERR_NULL_CONTEXT

The arc2Context context object is NULL.

SB_ERR_BAD_CONTEXT

The arc2Context context object is invalid.

SB_SUCCESS

Success.