On Jun 9, 2:17 pm, starburst <[email protected]> wrote: > I did some debugging and I think what is happening is that the > ciphertext changes sizes after being copied to a char and back to a > string multiple times (because if the cipher text has zeros in the > middle the rest of the data become invalid). > > Can anyone point me to a better way of converting a char to a string > and vice versa. I've tried strcpy with no luck.
Use an alternate std::string constructor (http://www.cplusplus.com/ reference/string/string/string/): string cipher(pBuffer, nBufferSize);; -- 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.
