i have to verify a signature of RSASSA-PSS.
i have Modulus (n), Exponent(e), Message(M) and SignatureValue(s).
here is my code,

----------------------------------------------------------------------------------------------------------------------------------------------
CryptoPP::RSASS<
CryptoPP::PSS, CryptoPP::SHA
>::Verifier verifier(nModulus, nExponent);

bool result = false;
result = verifier.VerifyMessage((const
byte*)strData.c_str(),strData.length(), (const
byte*)strSignatureValue64D.c_str(), strSignatureValue64D.length());
----------------------------------------------------------------------------------------------------------------------------------------------

note:
Modulus = tyKQLcKT6HzgDDBCqBFyFSbE/VAMCP/9FeaUWbIG/
TKPal6woNrSqMmd9ged3SBXaLeX91qdUG10J
+DtHevwzxm9iwwb4eMrVBE6W0QXB3xd4XiwvxICsI31X8HOGaSI+0wIgdGLSCySRYyXO
+54a/2vpgd7AKxeIp6gW7QlySdstFrOwItc98/PfEX4c6yK0lAgqNoIlw5PKa6qe0I5PlW
+wZAoSxDEMMo9GRQtTlvU8gX1k3tT4VyBpp2BzZsbA44AjWiEf0ZHm/
b9LcrbvdrPNrVyo5P5djXTuL1zUclducxRa4H9H
+aq0TmmHi78Rkaor2eEOZ4Ol47OeNfJEQ==

Exponent=AQAB


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to