On Mar 29, 12:49 pm, Michael <[email protected]> wrote:
> this is currently my hex decoder
>
> string crypt::hexDec(string data)
> {
>         engine.pl("crypt-> generating plaintext from hex",1);
>
>         //create cipher
>         CryptoPP::HexDecoder decoder;
>
>         //create and write data to buffer
>         string out;
>         decoder.Attach(new CryptoPP::StringSink(out));
>         decoder.Put((byte*)engine.str2ch(data), data.length());
>         decoder.MessageEnd();
>
>         //return buffer
>         return out;
>
> }
>
> Whats the correct way to just convert it to and return a char array
Call decoder.Get(...) after MessageEnd().

-- 
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.

Reply via email to