Re: Skipping last few bytes of file when FileSource

2017-11-07 Thread Richard Závodný
Thanks much! The last example works well.. :) -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Jeffrey Walton
On Monday, November 6, 2017 at 2:27:30 PM UTC-5, Richard Závodný wrote: > > Okay. I think, there is another problem. The file is actually splitted > into two parts. First is encrypted content using AES and the second is > encrypted Aes Key and Iv using RSA. The encrypted Aes Key and Iv is 512

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Richard Závodný
Okay. I think, there is another problem. The file is actually splitted into two parts. First is encrypted content using AES and the second is encrypted Aes Key and Iv using RSA. The encrypted Aes Key and Iv is 512 bytes big on the end. First I needed to get 512 bytes from the end, decrypt using

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Jeffrey Walton
On Sunday, November 5, 2017 at 10:00:06 AM UTC-5, Richard Závodný wrote: > > Hi. I need skip last 512bytes from the file. This solution not working: > int fileSize = boost::filesystem::file_size("first.txt"); > > CryptoPP::FileSource sourceFile("first.txt", false, new CryptoPP::FileSink >