Verifies a DSA signature on the given message digest based on FIPS 186.
#include "huidlc.h"
int hu_IDLCDSANoHashVerify(sb_Params idlcParams, sb_PublicKey publicKey, size_t length, const unsigned char *messageDigest, size_t sLength, const unsigned char *sValue, size_t rLength, const unsigned char *rValue, int *result, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
An IDLC parameters object.
An IDLC public key object.
The length (in bytes) of the message digest.
The message digest.
The length (in bytes) of sValue.
The s component of the signature.
The length (in bytes) of rValue.
The r component of the signature.
Verification result. This is non-zero if the signature is valid; otherwise it is zero, meaning the signature is invalid.
A global context.
This function assumes that the input is a message digest (of any length); no digest operation will be performed on the input.
If the signature is valid for the given digest, this function may return SB_SUCCESS and set result to a non-zero value.
If the signature is not valid for the given digest, this function may return SB_SUCCESS but result will be set to zero.
The idlcParams object is NULL.
The tag for the params object is not of the expected type.
The public key object is NULL.
The public key object is invalid.
The length of the message digest is invalid.
The message digest is NULL.
The signature component is NULL.
The signature component length is invalid.
The signature component is NULL.
The signature component length is invalid.
The verification result pointer is NULL.
Memory allocation failure.
Success.