On Tue, Nov 02, 2004 at 10:56:36AM -0500, John Bradley wrote: > CryptoPP::DefaultEncryptorWithMAC encryptor(m_password.c_str(), > new > CryptoPP::HexEncoder()); > > > encryptor.Detach( new CryptoPP::StringSink( challenge ));
This line detaches the HexEncoder and attaches a StringSink instead. You need to call encryptor.Attach(...) to attach the StringSink to the end of the chain, or just put "new CryptoPP::StringSink..." inside "CryptoPP::HexEncoder()"'s parentheses.
