Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISign2::verifyRSA ( P6BSTR pInData,
P6BSTR pSignature 
)
pure virtual

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
SuccessP6R::eOk 
FailureeNotInitializedA successful call to initialize was not made before this call.
eInvalidArgOne of the parameters is NULL.
eMissingKeysetKey must be called before this function.
eWrongKeyClassPublic key must be used to verify the signature.
eWrongKeyTypePrevious call to setKey() was not an RSA key.
eSignatureMismatchEither data or signature HAS been modified.
eFailAndExceptionThe signature calculation failed. Exception record provides detailed error info.