Checks that the private key reconstruction data and certificate are valid using public key request data, public key reconstruction data, the CA's public key, and a hash of the certificate.
#include "huecc.h"
int hu_ECQVPriKeyValidate(sb_Params eccParams, sb_PrivateKey privateKeyReconstData, sb_PublicKey publicKeyReconstData, sb_PublicKey publicKeyRequestData, sb_PublicKey caPublicKey, size_t digestLen, const unsigned char *messageDigest, int *result, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An ECC parameters object.
An ECC private key object of the private key reconstruction data.
An ECC public key object of the public key reconstruction data.
An ECC public key object of the requester's public key request data.
An ECC public key object of CA's public key.
The length of the message digest.
Message digest of the certificate.
The validation result. This is non-zero if valid; zero if invalid.
A global context.
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 privateKeyReconstData object is NULL.
The privateKeyReconstData object is invalid.
The publicKeyReconstData object is NULL.
The publicKeyReconstData object is invalid.
The publicKeyRequestData object is NULL.
The publicKeyRequestData object is invalid.
The caPublicKey object is NULL.
The caPublicKey object is invalid.
Message digest pointer is NULL.
Message digest length is zero.
The validation result pointer is NULL.
Memory allocation failure.
Success.