hu_ECCKeyGen()

Creates an ECC private key object from random data, and, optionally, the corresponding public key object.

Synopsis:

#include "huecc.h"
 
int hu_ECCKeyGen(sb_Params eccParams, sb_PrivateKey *privateKey, sb_PublicKey *publicKey, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

eccParams

An ECC parameters object.

privateKey

The private key object pointer.

publicKey

The public key object pointer. If non-NULL, then a public key object is created in addition to the private key.

sbCtx

A global context.

Library:

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

Description:

The ECC parameter object must have been created with an RNG context.

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_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