I figured out my bug. My apologizes to anyone who reviewed the code. On Wednesday, February 12, 2020 at 9:45:24 PM UTC-6, Grant Rostig wrote: > > A fix for my bug, that doesn't help any problem except the SourceString > being only 16 bytes, versus the more correct 32 bytes long. > > cpp::StringSource source(pdata.data(), pdata.size()); > > replaced by: > cpp::StringSource source(pdata, false); > > Also EndOfFile doesn't work for the StringSource, but I fixed that with an > ugly hack and now, both string and file sources, produce the same wrong > result of 32 bytes as shown above. I presume this is not an endian problem? > > On Wednesday, February 12, 2020 at 3:47:39 PM UTC-6, Grant Rostig wrote: >> >> Hi, I'm using the official examples from here: >> https://www.cryptopp.com/wiki/Pumping_Data >> to implement encryption of large files using pump, having also AAD with >> AES GCM. I like the meter user feedback output, so I figure I must >> manually pump(). >> >> >> Any assistance is appreciated. >> >
-- You received this message because you are subscribed to "Crypto++ Users". More information about Crypto++ and this group is available at http://www.cryptopp.com and http://groups.google.com/forum/#!forum/cryptopp-users. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/024e0017-be33-458a-bc5f-78a2658494f6%40googlegroups.com.