On a whim, I tried these mods this morning to that code, and it appears to 
work now,  This suggests something isn't quite working with the 
StringSource lines.

for Encrypting:
        AuthenticatedEncryptionFilter ss(enc, new StringSink(cipher));
        byte* data = decUser.Data.cryptoBuffer;
        for (int index = 0; index < sizeof(USERDATA::Data.Info); ++index)
        {
            ss.Put(data[index]);
        }
        ss.MessageEnd();




for Decrypting:
        AuthenticatedDecryptionFilter ss(decr, new StringSink(decoded));
        byte* data = encUser.Data.cryptoBuffer;
        for (int index = 0; index < (sizeof(USERDATA::Data.Info) + TAG_SIZE
); ++index)
        {
            ss.Put(data[index]);
        }
        ss.MessageEnd();




-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to