I changed des.cpp

void DES_XEX3::Base::ProcessAndXorBlock(const byte *inBlock, const
byte *xorBlock, byte *outBlock) const
{
        byte* temp = NULL;
        if (xorBlock) {
                temp = (byte*)malloc(BLOCKSIZE);
                memcpy(temp, xorBlock, BLOCKSIZE);
        }
        xorbuf(outBlock, inBlock, m_x1, BLOCKSIZE);
        m_des->ProcessAndXorBlock(outBlock, temp, outBlock);
        xorbuf(outBlock, m_x3, BLOCKSIZE);
        if (temp) {
                 free(temp); temp = NULL;
        }
}

ctr + stream


inline void ProcessString(byte *inoutString, size_t length)
                {ProcessData(inoutString, inoutString, length);}

because inoutString is same pointer.

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