Skip to contentSkip to conversation

2.6.8.1 crypto: tea.c xtea_encrypt should use XTEA_DELTA

PATCH In review Thor Kooda 2 participants 4 messages Sep 3, 2004 – Sep 7, 2004

lore
Share & tools
lore

Thor Kooda

author
#0 lore raw

PATCH 1/1 2.6.8.1 crypto: tea.c xtea_encrypt should use XTEA_DELTA

Patch for crypto/tea.c, added in 2.6.8-rc1:

xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.

Signature · 14 lines
Thor Kooda
[email protected]


--- linux-2.6.8.1.orig/crypto/tea.c     Sat Aug 14 05:56:25 2004
+++ linux-2.6.8.1/crypto/tea.c  Fri Sep  3 17:34:06 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]; 
        }
#1 lore raw

Thor, your patches do not apply because your email client turns tab characters into spaces, please fix this up.

Thanks.

author
#2 lore raw
Quoted 3 lines · David S. Miller

Thor, your patches do not apply because your email client turns tab characters into spaces, please fix this up.

Fixed.

Signature · 14 lines
Thor Kooda
[email protected]


--- linux-2.6.8.1.orig/crypto/tea.c	Sat Aug 14 05:56:25 2004
+++ linux-2.6.8.1/crypto/tea.c	Tue Sep  7 17:22:51 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]; 
 	}
#3 lore raw
Quoted 6 lines · On Tue, 7 Sep 2004 17:26:22 -0500 Thor Kooda <[email protected]>…
Quoted 3 lines · David S. Miller

Thor, your patches do not apply because your email client turns tab characters into spaces, please fix this up.

Fixed.

Thank you, both 2.4.x and 2.6.x patches applied