On Tuesday, November 21, 2017 at 6:48:54 PM UTC-5, El Ray wrote: > > SOLVED: > > The problem was that I'd missed the pumpall bool in ArraySource. The > correct line is: > > CryptoPP::ArraySource(PlainTextB.data(), PlainTextB.size(), true, enc); > > Somewhere I saw something without that and unfortunately copied it. > > (Without that CipherText stays as initialized which was the implied but > not clearly stated problem). > > Thanks for the pointer. It helped >
Lol... Everyone does that. I think I do it most often :) The thing is, pointer-to-bool conversion is specified by the C++ standard so you never get a warning for it. In the Crypto++ case, the attached buffer transformation is silently converted to the bool pumpAll. Jeff -- -- 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. --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
