Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISign2::verifyDSARaw ( P6CRYPTODATASOURCE pInData,
P6UCHAR pR,
P6UINT32  rLength,
P6UCHAR pS,
P6UINT32  sLength 
)
pure virtual

Verify that the data pointed to by pInData has not been modified.

That is the signature represented by the two parameters pR and pS have been generated on the data pInData with the proper key. This method is defined to work with only a DSA cipher and a call to the setKey() method must be called before this function.

Parameters
pInData[ in ] Verify the signature for this input data.
pR[ in ] Binary value, 160-bit integer half of the DSA signature.
rLength[ in ] This parameter contains the size in bytes of the buffer pointed to by pR.
pS[ in ] Binary value, 160-bit integer half of the DSA signature.
sLength[ in ] This parameter contains the size in bytes of the buffer pointed to by pS.
Returns
SuccessP6R::eOk 
FailureeNotInitializedA successful call to initialize was not made before this call.
eFormatErrorA DSA private key has not been loaded via loadDSAKeyPair.
eInvalidArgOne of the parameters is NULL or
eNotFoundFile data source does not exist.
eEndOfFile
eTooBigInternal error
eFailThe verify calculation failed.
eMissingKeysetKey must be called before this function.
eWrongKeyClassA public key is required.
eSignatureMismatchEither data or signature HAS been modified.