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 that: Modulus = tyKQLcKT6HzgDDBCqBFyFSbE/VAMCP/9FeaUWbIG/ TKPal6woNrSqMmd9ged3SBXaLeX91qdUG10J +DtHevwzxm9iwwb4eMrVBE6W0QXB3xd4XiwvxICsI31X8HOGaSI+0wIgdGLSCySRYyXO +54a/2vpgd7AKxeIp6gW7QlySdstFrOwItc98/ PfEX4c6yK0lAgqNoIlw5PKa6qe0I5PlW +wZAoSxDEMMo9GRQtTlvU8gX1k3tT4VyBpp2BzZsbA44AjWiEf0ZHm/ b9LcrbvdrPNrVyo5P5djXTuL1zUclducxRa4H9H +aq0TmmHi78Rkaor2eEOZ4Ol47OeNfJEQ== Exponent=AQAB Message=<c:Data xmlns="http://www.w3.org/2000/09/xmldsig#" xmlns:c="http://schemas.microsoft.com/DRM/2004/02/ cert"><c:PublicKey><KeyValue><RSAKeyValue><Modulus>yxCkp/ fatiVYTYmsvLlEcf8CzNtEdqKlB1EqUtJnhAXs6bq+wYIRVRWVn8qRUuHZGDUKM +AY7R61kiy3ASBWVY6kV2UAuLvZ7u5ZxFNQCAq6MCaieaDlKcAzE58RAL3NJt5Q0zxAiImX/ o1In4Or7JjDGhiBEkfwn7/HUtQ40OWlxfCfc/ Zc4dnIQUgR7vBenULZHBP1Y97QGKLJQphKdlMzOmQiEIpan8JT8DVpnMgQRPL/ Tg0GzJ5Ym4cJ/3LMY1VnlstKaYDBaK8ecRGpjvcPaHthWbv1QU6YOAtIaXj0q+NJNZoz/C/ t0NZrryKP6YZ7XUWZ7cxMe6IYn2Wcbw==</Modulus><Exponent>AQAB</Exponent></ RSAKeyValue></KeyValue></c:PublicKey><c:KeyUsage><c:EncryptKey>1</ c:EncryptKey></c:KeyUsage><c:SecurityLevel>2000</ c:SecurityLevel><c:ManufacturerData><c:ManufacturerName>NVidia Corporation</c:ManufacturerName><c:ManufacturerURL>http:// www.nvidia.com</c:ManufacturerURL><c:ModelName>Graphics Driver</ c:ModelName><c:ModelNumber>Version 158.22</c:ModelNumber></ c:ManufacturerData><c:Features><c:WMDRMReceiver>1</ c:WMDRMReceiver><c:COPPCertificate>1</c:COPPCertificate></c:Features></ c:Data> Signature=MGtxV+oi +mTexoaLswGKks1bcRdkZPa8NICaDrCMbpJr9uGVlip0HYFplr79Z8k9qP1k2VWLojLuljE8c8qT5kcRsexDeJ7okGeUYfwvsWvfT9F90JySwG250NEjs7Tjzz5oEGvf7ATXN19jLTIdQtPEIe0TUdZ3QBUx2sSuo3WSXcLSTcWxMzcHM00CFi9Swl4eAh6mHJOTq6uHPmmr915kckyC9Bz3R10uzZlqhsEoa9OBd8DmgJPIaHmLrvbAefQVUMbRN9odz4YAOnDuvFsKoGzD8pvFmFmAK3hT3G0xu0HRzgk7Qzf67leQGaqtUe9G31xyVTHM3c +GBPgjOQ== --------------------------------------------------------------------------- ------------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
