Commented out some unneeded code

This commit is contained in:
tomrus88 2009-03-21 15:23:13 +03:00
parent 9f8fdea525
commit dc1c3636d8

View file

@ -41,21 +41,21 @@ void AuthCrypt::Init(BigNumber *K)
HmacHash clientDecryptHmac(SEED_KEY_SIZE, (uint8*)ServerDecryptionKey); HmacHash clientDecryptHmac(SEED_KEY_SIZE, (uint8*)ServerDecryptionKey);
uint8 *decryptHash = clientDecryptHmac.ComputeHash(K); uint8 *decryptHash = clientDecryptHmac.ComputeHash(K);
SARC4 _serverDecrypt(encryptHash); //SARC4 _serverDecrypt(encryptHash);
_clientDecrypt.Init(decryptHash); _clientDecrypt.Init(decryptHash);
_serverEncrypt.Init(encryptHash); _serverEncrypt.Init(encryptHash);
SARC4 _clientEncrypt(decryptHash); //SARC4 _clientEncrypt(decryptHash);
uint8 syncBuf[1024]; uint8 syncBuf[1024];
memset(syncBuf, 0, 1024); memset(syncBuf, 0, 1024);
_serverEncrypt.UpdateData(1024, syncBuf); _serverEncrypt.UpdateData(1024, syncBuf);
_clientEncrypt.UpdateData(1024, syncBuf); //_clientEncrypt.UpdateData(1024, syncBuf);
memset(syncBuf, 0, 1024); memset(syncBuf, 0, 1024);
_serverDecrypt.UpdateData(1024, syncBuf); //_serverDecrypt.UpdateData(1024, syncBuf);
_clientDecrypt.UpdateData(1024, syncBuf); _clientDecrypt.UpdateData(1024, syncBuf);
_initialized = true; _initialized = true;