From:
[email protected]
tags 244892 + patch
thanks
Here's a patch.
--- libcrypto++-5.1/serpent.cpp~ 2002-05-09 01:51:26.000000000 +0200
+++ libcrypto++-5.1/serpent.cpp 2004-08-16 22:57:58.000000000 +0200
@@ -428,14 +428,14 @@ void Serpent::Base::UncheckedSetKey(Ciph
word32 *k = m_key;
GetUserKey(LITTLE_ENDIAN_ORDER, k, 8, userKey, keylen);
- word32 i,a,b,c,d,e;
+ word32 a,b,c,d,e;
if (keylen < 32)
k[keylen/4] |= word32(1) << ((keylen%4)*8);
k += 8;
word32 t = k[-1];
- for (i = 0; i < 132; ++i)
+ for (int i = 0; i < 132; ++i)
k[i] = t = rotlFixed(k[i-8] ^ k[i-5] ^ k[i-3] ^ t ^ 0x9e3779b9 ^ i, 11);
k -= 20;
@@ -451,7 +451,7 @@ void Serpent::Base::UncheckedSetKey(Ciph
k[(8-r)*4 + 6] = c; \
k[(8-r)*4 + 7] = d;} \
- for (i=0; i<4; i++)
+ for (int i=0; i<4; i++)
{
afterS2(LK); afterS2(S3); afterS3(SK);
afterS1(LK); afterS1(S2); afterS2(SK);
--
Falk
--
To UNSUBSCRIBE, email to
[email protected]
with a subject of "unsubscribe". Trouble? Contact
[email protected]
--- SoupGa