This function uses an RSA public key to decrypt the given signature to recover the message digest originally passed into the signRSA() function.
The pSignature was generated form a call to signRSA() above. The decrypted message digest is then compared with the pInData.
- Parameters
-
pInData | [ in ] Same data used to create the signature in signRSA() |
pSignature | [ in ] Value generated by sign() |
- Returns
Success | P6R::eOk | |
Failure | eNotInitialized | A successful call to initialize was not made before this call. |
eInvalidArg | One of the parameters is NULL. |
eMissingKey | setKey must be called before this function. |
eWrongKeyClass | Public key must be used to verify the signature. |
eWrongKeyType | Previous call to setKey() was not an RSA key. |
eSignatureMismatch | Either data or signature HAS been modified. |
eFailAndException | The signature calculation failed. Exception record provides detailed error info. |