Generates private key reconstruction data from the CA's private key, the CA's ephemeral private key and a hash of the certificate.
#include "huecc.h"
int hu_ECQVPriKeyReconstGen(sb_Params eccParams, sb_PrivateKey privateKey, sb_PrivateKey ephemeralPrivateKey, size_t digestLen, const unsigned char *messageDigest, sb_PrivateKey *privateKeyReconstData, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
An ECC private key object of the CA's private key.
An ECC private key object of the CA's ephemeral private key.
The length of the message digest.
Message digest of the certificate.
An ECC private key object pointer of the private key reconstruction data.
A global context.
The public key reconstruction data must be generated prior to calling this function and it must be included in the certificate.
Please note that this is function does not perform any hashing, and therefore, the message digest of the certificate must be supplied in messageDigest.
The eccParams object is NULL.
The tag for the params object is not of the expected type.
The privateKey object is NULL.
The privateKey object is invalid.
The ephemeralPrivateKey object is NULL.
The ephemeralPrivateKey object is invalid.
Message digest pointer is NULL.
Message digest length is zero.
The privateKeyReconstData object pointer is NULL.
Memory allocation failure.
Success.