From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269969AbUICWfV (ORCPT ); Fri, 3 Sep 2004 18:35:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269954AbUICWfV (ORCPT ); Fri, 3 Sep 2004 18:35:21 -0400 Received: from [216.70.31.95] ([216.70.31.95]:1682 "HELO rock.mm-interactive.com") by vger.kernel.org with SMTP id S269879AbUICWe7 (ORCPT ); Fri, 3 Sep 2004 18:34:59 -0400 Date: Fri, 3 Sep 2004 17:34:58 -0500 From: Thor Kooda To: Linux Kernel Subject: [PATCH] 2.6.8.1 crypto: tea.c xtea_encrypt should use XTEA_DELTA Message-ID: <20040903223458.GD18362@rock> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Patch for crypto/tea.c, added in 2.6.8-rc1: xtea_encrypt() should use XTEA_DELTA instead of TEA_DELTA. Signed-off-by: Thor Kooda -- Thor Kooda tkooda-patch-kernel@devsec.org --- 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]; }