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;
}

but the problem is now i need one to return as a char array, and
because im dealing with binary files and such, cant exactly be
converting from string and back.

Whats the correct way to just convert it to and return a char array

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