hu_AESEnd()

Destroys an AES context object.

Synopsis:

#include "huaes.h"
 
int hu_AESEnd(sb_Context *aesContext, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

aesContext

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

Returns:

SB_ERR_NULL_CONTEXT_PTR

The aesContext object pointer is NULL.

SB_ERR_NULL_CONTEXT

The aesContext object is NULL.

SB_ERR_BAD_CONTEXT

aesContext is invalid.

SB_SUCCESS

Success.