hu_AESKeyDestroy()

Destroys an AES key object.

Synopsis:

#include "huaes.h"
 
int hu_AESKeyDestroy(sb_Params aesParams, sb_Key *aesKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

aesParams

The AES parameters object.

aesKey

The AES key object pointer.

sbCtx

Global context.

Library:

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

Description:

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

Returns:

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_ERR_NULL_KEY_PTR

The aesKey object pointer is NULL.

SB_ERR_NULL_KEY

The aesKey object is NULL.

SB_ERR_BAD_KEY

The aesKey object is invalid.

SB_SUCCESS

Success.