hu_AESParamsDestroy()

Destroys an AES parameters object.

Synopsis:

#include "huaes.h"
 
int hu_AESParamsDestroy(sb_Params *aesParams, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

aesParams

The AES parameters object pointer.

sbCtx

A global context.

Library:

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

Description:

AES contexts and key objects must be destroyed before their corresponding AES parameters object is destroyed.

Returns:

SB_ERR_NULL_PARAMS_PTR

The aesParams object pointer is NULL.

SB_ERR_NULL_PARAMS

The aesParams object is NULL.

SB_ERR_BAD_PARAMS

The tag for the params object is not of the expected type.

SB_SUCCESS

Success.