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
Success | P6R::eOk | |
Failure | eNotInitialized | A successful call to initialize was not made before this call. |
eFormatError | A DSA private key has not been loaded via loadDSAKeyPair. |
eInvalidArg | One of the parameters is NULL or |
eNotFound | File data source does not exist. |
eEndOfFile | |
eTooBig | Internal error |
eFail | The verify calculation failed. |
eMissingKey | setKey must be called before this function. |
eWrongKeyClass | A public key is required. |
eSignatureMismatch | Either data or signature HAS been modified. |