I'm using Crypto 4.2 on both the Mac and the PC, doing
some cross-platform stuff, and I have a bit of code
that works fine on the PC but goes kablooie on the
Mac.  Here's the code:

                std::string dehexCipherText;

                CryptoPP::HexDecoder output(new
CryptoPP::StringSink(dehexCipherText));

  // Here is where the problem occurs.  This next line
should fill dehexCipherText with the dehexed
  // text, and it does so on the PC side.  However, on
the Mac side, dehexCipherText remains
  // empty
  // hexEncryptedText is a std::string containing some
hex text
        
output.Put((byte*)hexEncryptedText.c_str(),hexEncryptedText.length());

The program then marches on, tries to decrypt the
empty dehexCipherText string, and goes kablooie.  Am I
doing something wrong in those two lines of code? 
Could I have perhaps compiled the program incorrectly
on the Mac side?  Any ideas?  Help!

Lawrence Horwitz

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

Reply via email to