From 527d73368897f94912ccc3cc71f610c5d1e8cefe Mon Sep 17 00:00:00 2001 From: Glen Masgai Date: Mon, 18 Oct 2010 17:57:18 +0000 Subject: [PATCH] password hash endianess fix git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5765 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/crypto.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/src/crypto.cpp b/source/src/crypto.cpp index e16e00a3..c065dc93 100644 --- a/source/src/crypto.cpp +++ b/source/src/crypto.cpp @@ -146,14 +146,6 @@ namespace tiger while(j < 56) temp[j++] = 0; *(chunk *)(temp+56) = (chunk)length<<3; compress((chunk *)temp, val.chunks); - if(!*(const uchar *)&islittleendian) - { - loopk(3) - { - uchar *c = &val.bytes[k*sizeof(chunk)]; - loopl(sizeof(chunk)/2) swap(c[l], c[sizeof(chunk)-1-l]); - } - } } }