Re: [PATCH] 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA

From: Thor Kooda
Date: Tue Sep 07 2004 - 17:34:47 EST


On Fri, 03 Sep 2004, Thor Kooda wrote:
> Patch for crypto/tea.c, added in 2.4.27-rc4:
>
> xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.

Fixed tab mangling.

Signed-off-by: Thor Kooda <tkooda-patch-kernel@xxxxxxxxxx>

--
Thor Kooda
tkooda-patch-kernel@xxxxxxxxxx


--- linux-2.4.27.orig/crypto/tea.c Sat Aug 7 18:26:04 2004
+++ linux-2.4.27/crypto/tea.c Tue Sep 7 17:15:58 2004
@@ -154,7 +154,7 @@

while (sum != limit) {
y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3];
- sum += TEA_DELTA;
+ sum += XTEA_DELTA;
z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3];
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/