hu_ECCKeyExpand()

Expands the given ECC public key object so that subsequent operations using the key may be faster.

Synopsis:

#include "huecc.h"
 
int hu_ECCKeyExpand(sb_Params eccParams, int optLevel, sb_PublicKey publicKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

eccParams

An ECC parameters object.

optLevel

Ignored.

publicKey

An ECC public key object.

sbCtx

A global context.

Library:

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

Description:

Additional memory is allocated to store the expansion data in the public key object. The amount of memory required depends on the optimization level of the corresponding ECC parameters object.

Returns:

SB_ERR_NULL_PARAMS

The eccParams object is NULL.

SB_ERR_BAD_PARAMS

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

SB_ERR_NULL_PUBLIC_KEY

The publicKey object is NULL.

SB_ERR_BAD_PUBLIC_KEY

The publicKey object is invalid.

SB_FAIL_ALLOC

Memory allocation failure.

SB_SUCCESS

Success.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus