hu_ECQVPubKeyReconstGen()

Generates public key reconstruction data from public key request data and the CA's ephemeral public key.

Synopsis:

#include "huecc.h"
 
int hu_ECQVPubKeyReconstGen(sb_Params eccParams, sb_PublicKey ephemeralPublicKey, sb_PublicKey publicKeyRequestData, sb_PublicKey *publicKeyReconstData, sb_GlobalCtx sbCtx)

Since:

BlackBerry 10.0.0

Arguments:

eccParams

An ECC parameters object.

ephemeralPublicKey

An ECC public key object of CA's ephemeral public key.

publicKeyRequestData

An ECC public key object of the requester's public key request data.

publicKeyReconstData

ECC public key object pointer of the public key reconstruction data.

sbCtx

A global context.

Library:

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

Description:

The CA's ephemeral key pair must be generated prior to calling this function. Any data from the requester that is to be used in generating the public key reconstruction data must be passed in publicKeyReconstData.

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_EPHEM_PUB_KEY

The ephemeralPublicKey object is NULL.

SB_ERR_BAD_EPHEM_PUB_KEY

The ephemeralPublicKey object is invalid.

SB_ERR_NULL_PUBLIC_KEY

The publicKeyRequestData object is NULL.

SB_ERR_BAD_PUBLIC_KEY

The publicKeyRequestData object is invalid.

SB_ERR_NULL_OUTPUT

The publicKeyReconstData object pointer is NULL.

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