public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA
@ 2004-09-03 22:29 Thor Kooda
  2004-09-07 22:31 ` Thor Kooda
  0 siblings, 1 reply; 2+ messages in thread
From: Thor Kooda @ 2004-09-03 22:29 UTC (permalink / raw)
  To: Linux Kernel

Patch for crypto/tea.c, added in 2.4.27-rc4:

xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA.

Signed-off-by: Thor Kooda <tkooda-patch-kernel@devsec.org>

-- 
Thor Kooda
tkooda-patch-kernel@devsec.org


--- linux-2.4.27.orig/crypto/tea.c      Sat Aug  7 18:26:04 2004
+++ linux-2.4.27/crypto/tea.c   Fri Sep  3 17:08:18 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]; 
        }
        

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA
  2004-09-03 22:29 [PATCH] 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA Thor Kooda
@ 2004-09-07 22:31 ` Thor Kooda
  0 siblings, 0 replies; 2+ messages in thread
From: Thor Kooda @ 2004-09-07 22:31 UTC (permalink / raw)
  To: Linux Kernel

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@devsec.org>

-- 
Thor Kooda
tkooda-patch-kernel@devsec.org


--- 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]; 
 	}
 	

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-07 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03 22:29 [PATCH] 2.4.27 crypto: tea.c xtea_encrypt should use XTEA_DELTA Thor Kooda
2004-09-07 22:31 ` Thor Kooda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox