diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 03:28:39 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 03:28:39 +0000 |
commit | f1b1bf3d0dea2032f9ce5f9b3d29b7ed5d22a32a (patch) | |
tree | bbbd178df43bdc71503320cd87f5ec0c84c9d494 /gcm.cpp | |
parent | 94ee86bbf6d35476281a7012136e7c74c1693231 (diff) | |
download | cryptopp-f1b1bf3d0dea2032f9ce5f9b3d29b7ed5d22a32a.tar.gz |
tweaks/fixes for 5.6
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@435 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'gcm.cpp')
-rw-r--r-- | gcm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,11 +97,11 @@ void GCM_Base::SetKeyWithoutResync(const byte *userKey, size_t keylength, const {
s_reductionTable[0] = 0;
word16 x = 0x01c2;
- s_reductionTable[1] = ConditionalByteReverse(BIG_ENDIAN_ORDER, x);
+ s_reductionTable[1] = ByteReverse(x);
for (int i=2; i<=0x80; i*=2)
{
x <<= 1;
- s_reductionTable[i] = ConditionalByteReverse(BIG_ENDIAN_ORDER, x);
+ s_reductionTable[i] = ByteReverse(x);
for (int j=1; j<i; j++)
s_reductionTable[i+j] = s_reductionTable[i] ^ s_reductionTable[j];
}
@@ -198,7 +198,7 @@ void GCM_AuthenticateBlocks_64K(const byte *data, size_t blocks, word64 *hashBuf size_t GCM_Base::AuthenticateBlocks(const byte *data, size_t len)
{
- typedef BlockGetAndPut<word64, NativeByteOrder, false, true> Block;
+ typedef BlockGetAndPut<word64, NativeByteOrder> Block;
word64 *hashBuffer = (word64 *)HashBuffer();
switch (2*(m_buffer.size()>=64*1024)
|