From: Marc Bevand <bevand_m@epita.fr>
To: linux-kernel@vger.kernel.org
Subject: Re: [rc4-amd64] RC4 optimized for AMD64
Date: Mon, 1 Nov 2004 12:24:07 +0000 (UTC) [thread overview]
Message-ID: <cm59t7$pbu$1@sea.gmane.org> (raw)
In-Reply-To: Xine.LNX.4.44.0411010232470.2694-100000@thoron.boston.redhat.com
On 2004-11-01, James Morris <jmorris@redhat.com> wrote:
|
| Only problem is that the setkey code is released under a GPL incompatible
| license. Although it's probably not difficult to make the kernel's
| existing C setkey code to work with the new asm code.
Yes, it would be very easy to do. This patch (completetly untested)
is probably all that is necessary to make Linux arc4_set_key() work
with rc4-amd64:
--- 8< -----------------------------------------------------------------
--- crypto/arc4.c.orig 2004-11-01 13:16:41.739375512 +0100
+++ crypto/arc4.c 2004-11-01 13:18:16.799924112 +0100
@@ -20,8 +20,8 @@
#define ARC4_BLOCK_SIZE 1
struct arc4_ctx {
- u8 S[256];
- u8 x, y;
+ u64 x, y;
+ u64 S[256];
};
static int arc4_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags)
--- 8< -----------------------------------------------------------------
--
Marc Bevand http://www.epita.fr/~bevand_m
Computer Science School EPITA - System, Network and Security Dept.
next prev parent reply other threads:[~2004-11-01 12:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-01 6:57 [rc4-amd64] RC4 optimized for AMD64 Marc Bevand
2004-11-01 7:36 ` James Morris
2004-11-01 12:24 ` Marc Bevand [this message]
2004-11-01 20:44 ` dean gaudet
2004-11-01 20:51 ` dean gaudet
2004-11-01 23:01 ` Marc Bevand
[not found] ` <200411020854.21629.vda@port.imtp.ilyichevsk.odessa.ua>
2004-11-02 18:52 ` dean gaudet
2004-11-02 21:45 ` Denis Vlasenko
2004-11-03 10:07 ` Marc Bevand
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='cm59t7$pbu$1@sea.gmane.org' \
--to=bevand_m@epita.fr \
--cc=linux-kernel@vger.kernel.org \
/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