hu_KeyPairDestroy()

Destroys a public and/or private key object.

Synopsis:

#include "hupkc.h"
 
int hu_KeyPairDestroy(sb_Params params, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

params

A parameters object pointer.

privateKey

The private key object pointer.

publicKey

The public key object pointer.

sbCtx

A global context.

Library:

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

Description:

The context for the key object(s) must be destroyed before the key object(s) are destroyed. After the key object(s) are destroyed, the corresponding parameters object can be destroyed.

Returns:

SB_ERR_NULL_PARAMS

The params object is NULL.

SB_ERR_BAD_PARAMS

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

SB_ERR_NULL_PRIVATE_KEY

The privateKey object is NULL.

SB_ERR_BAD_PRIVATE_KEY

The privateKey object is invalid.

SB_ERR_NULL_PUBLIC_KEY

The publicKey object is NULL.

SB_ERR_BAD_PUBLIC_KEY

The publicKey object is invalid.

SB_SUCCESS

Success.