Hi
What's wrong here. I have this code in a DLL. When calling this functions I got sometimes different output on same input, key and iv. The problem is also the same without Gzip.
byte iv[16]={'A','m','1','?','_','1','L','?','�','q','u','L','*','m','a','p'};
string cmpstring,outstring;
// Compress
StringSource( bIn, inSize, true, new Gzip( new StringSink(cmpstring)));
// Encrypt
DES_EDE3_Encryption desE(key);
StringSource( cmpstring, inSize, true, new CBC_CTS_Encryptor(desE, iv, new HexEncoder( new StringSink(outstring))));
Regards
Arthur
