{"action":"opened","issue":{"url":"https://api.github.com/repos/weidai11/cryptopp/issues/746","repository_url":"https://api.github.com/repos/weidai11/cryptopp","labels_url":"https://api.github.com/repos/weidai11/cryptopp/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/weidai11/cryptopp/issues/746/comments","events_url":"https://api.github.com/repos/weidai11/cryptopp/issues/746/events","html_url":"https://github.com/weidai11/cryptopp/issues/746","id":384310995,"node_id":"MDU6SXNzdWUzODQzMTA5OTU=","number":746,"title":"AES CBC Decrypt crashes on some machines","user":{"login":"alfacheetos2throwaway","id":45270299,"node_id":"MDQ6VXNlcjQ1MjcwMjk5","avatar_url":"https://avatars1.githubusercontent.com/u/45270299?v=4","gravatar_id":"","url":"https://api.github.com/users/alfacheetos2throwaway","html_url":"https://github.com/alfacheetos2throwaway","followers_url":"https://api.github.com/users/alfacheetos2throwaway/followers","following_url":"https://api.github.com/users/alfacheetos2throwaway/following{/other_user}","gists_url":"https://api.github.com/users/alfacheetos2throwaway/gists{/gist_id}","starred_url":"https://api.github.com/users/alfacheetos2throwaway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfacheetos2throwaway/subscriptions","organizations_url":"https://api.github.com/users/alfacheetos2throwaway/orgs","repos_url":"https://api.github.com/users/alfacheetos2throwaway/repos","events_url":"https://api.github.com/users/alfacheetos2throwaway/events{/privacy}","received_events_url":"https://api.github.com/users/alfacheetos2throwaway/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T12:35:34Z","updated_at":"2018-11-26T12:35:34Z","closed_at":null,"author_association":"NONE","body":"* Windows 10, 1803, Russian language\r\n* Latest stable version of cryptopp\r\n* built using VS2017\r\n\r\n`std::string decrypt(const std::string& str_in, const std::string& key, const std::string& iv)\r\n{\r\n\tstd::string str_out;\r\n\tCryptoPP::CBC_Mode<CryptoPP::AES>::Decryption decryption((byte*)key.c_str(), key.length(), (byte*)iv.c_str());\r\n\tCryptoPP::StringSource decryptor(str_in, true,\r\n\t\tnew CryptoPP::Base64Decoder(\r\n\t\t\tnew CryptoPP::StreamTransformationFilter(decryption,\r\n\t\t\t\tnew CryptoPP::StringSink(str_out)\r\n\t\t\t)\r\n\t\t)\r\n\t);\r\n\treturn str_out;\r\n}`\r\n\r\ncode works on multiple machines but fails on some computers very rarely. tests have been done & I'm 100% sure that it is a fault in the cryptoPP lib.\r\n\r\nGiven the same key, iv, encrypted message 90% of the computers will decrypt the message fine. But for the 10% the application crashes at the decrypt() function.\r\n"}}
{"actor":{"display_login":"alfacheetos2throwaway"}}