Why are you using CryptoPP::Integer::SIGNED? The numbers were probably encoded as unsigned so that could be the problem.
If removing that doesn't fix it, run your application in the debugger and set it to break on C++ exceptions thrown. Then you can look at where the exception is being thrown and figure out why Crypto++ is saying that the crypto material (key) is invalid. ----- Original Message ----- From: "jztan" <[EMAIL PROTECTED]> To: "Crypto++ Users" <[EMAIL PROTECTED]> Sent: Friday, August 03, 2007 1:43 AM Subject: Re: runtime error - verify RSSSA-PSS > > first, i do the base64-decoding for Mudulus, Exponent and > SignatureValue. > > then, convert Mudulus and Exponent to "CryptoPP::Integer" by using > following way: > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > CryptoPP::Integer > nModulus((byte*)strModulus64D.c_str(),strModulus64D.size(),CryptoPP::Integer::SIGNED); > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > And compile , linking is working correctly. > But at runtime, i keep getting the exception as folowing > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > Unhandled exception at 0x7c812a5b in gdcVerifier.exe: Microsoft C++ > exception: CryptoPP::CryptoMaterial::InvalidMaterial at memory > location 0x0012eec8.. > ------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > anyone can help me ? > > > > --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
