From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.26-pre2
Date: Sun, 07 Mar 2004 16:44:39 +1100 [thread overview]
Message-ID: <404AB6C7.7010803@eyal.emu.id.au> (raw)
In-Reply-To: <Pine.LNX.4.44.0403061618420.4428-100000@dmt.cyclades>
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
Marcelo Tosatti wrote:
>
> Hi,
>
> Here goes -pre2 -- it contains networking updates, network drivers
> updates, an XFS update, amongst others.
>
> <jon:focalhost.com>:
> o [CRYPTO]: Add ARC4 module
In standard C we declare all variables at the top of a function. While
some compilers allow extension, it is not a good idea to get used to
them if we want portable code.
If fails for me on Debian/stable.
Attached is a trivial patch for crypto/arc4.c.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
[-- Attachment #2: 2.4.26-pre2-arc4.patch --]
[-- Type: text/plain, Size: 475 bytes --]
--- linux/crypto/arc4.c.orig Sun Mar 7 16:33:11 2004
+++ linux/crypto/arc4.c Sun Mar 7 16:35:12 2004
@@ -55,14 +55,14 @@
static void arc4_crypt(void *ctx_arg, u8 *out, const u8 *in)
{
struct arc4_ctx *ctx = ctx_arg;
+ u8 *const S, x, y, a, b;
- u8 *const S = ctx->S;
- u8 x = ctx->x;
- u8 y = ctx->y;
-
- u8 a = S[x];
+ S = ctx->S;
+ x = ctx->x;
+ y = ctx->y;
+ a = S[x];
y = (y + a) & 0xff;
- u8 b = S[y];
+ b = S[y];
S[x] = b;
S[y] = a;
x = (x + 1) & 0xff;
next prev parent reply other threads:[~2004-03-07 5:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-06 19:20 Marcelo Tosatti
2004-03-07 5:44 ` Eyal Lebedinsky [this message]
2004-03-07 16:19 ` Horst von Brand
2004-03-07 18:49 ` Roland Dreier
2004-03-07 19:42 ` Michael Frank
2004-03-07 19:25 ` David Weinehall
2004-03-07 19:52 ` Rene Herman
2004-03-07 19:58 ` Jeff Garzik
2004-03-07 20:05 ` David Weinehall
2004-03-07 20:58 ` Michael Frank
2004-03-07 20:08 ` Michal Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=404AB6C7.7010803@eyal.emu.id.au \
--to=eyal@eyal.emu.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®