I have a null reference on the parameters object in gfpcrypt.h line
445.
parameters.GetValue(Name::EncodingParameters(), encodingParameters);
My code is as follows.
CryptoPP::AutoSeededRandomPool randPool;
static std::string EncryptedTest
("A0C90E11BD915815E073EDA32C41C603351F1F481327A5AEA154F13A588526B51ECB478A2E0FD382F80A8AF4482C76E8251C68FA3F9F4DE6BC6A28CAAB5E3AB1005FAACE754CAE39656B511D962F351FAEDF6DA005C4F1A1066618BA13F191BB755A16BB2A2AA605EF0C12A7AD03E71808AE7F09E11F0A6D817DC2A21554C193C44CEB36E2C926655F71CD711F7EB59F309469D3F1DB2C225C55D41C584A78D6E12A0294BBF24B8EC2E6EBCBD1D0337C480D2DD005C39D9651567B166A965B4AF68CB165E46326978FD2E2AACDB8BFDC8E489766CD66E1C6763746D17D0D462389A0744E99D707B600769DEB0138D3B1AF7025B3FFB44F5A58B4B05A633F32EC2D1377CC41D7CE05D45CCBB019EECA1A5A8884C0FDCC3127D38CFFD92F1E2856C780AA0154DC84BF3F9CBB294B3028355881736438C051A0F6B7ADF776344F0904EDF2B3E207F2D0ACF7788D9C951D6A44A8642B370DB56AE451D0CB5F9DEC7599997D9C707854835D0ED44B54A58573DCC36A3DAB050455EC71CB9890CE51967C72B9C2E3CB01B026776EAED0CC17BD2FB2CB080F766A03EDC2F00169D42EF9394F8A72EE2AD3BEED6587F40C358E6FB64BCFFDEEE40173E8E657CDBA26ABCE595C87E6327E45BC78996254D824FBA2831BBE4E7AC9F4AFCDB7D8FFF978674B3AD8D87228AF96D2F237D83AC62D8320A92E590383354F0F8B2D7C23EC784B6B");
static std::string PrivateKeyTest ("Omitted.");
CryptoPP::StringSource privClientKeyStringTest( PrivateKeyTest, true,
new CryptoPP::HexDecoder);
CryptoPP::RSAES<CryptoPP::OAEP<CryptoPP::SHA> >::Decryptor *
m_decPrivCliTestKey = new
CryptoPP::RSAES<CryptoPP::OAEP<CryptoPP::SHA> >::Decryptor
( privClientKeyStringTest );
std::string result;
CryptoPP::StringSource ( EncryptedTest.c_str (), true, new
CryptoPP::HexDecoder( new CryptoPP::PK_DecryptorFilter( randPool,
*m_decPrivCliTestKey, new CryptoPP::StringSink(result) ) ) );
The final line is the one that crashes, apparently no parameters are
set on the PK_DecryptorFilter construction, and I have no idea why.
What would cause this issue?
--~--~---------~--~----~------------~-------~--~----~
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.
-~----------~----~----~----~------~----~------~--~---