Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272216AbUKAWo2 (ORCPT ); Mon, 1 Nov 2004 17:44:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S378317AbUKAWoW (ORCPT ); Mon, 1 Nov 2004 17:44:22 -0500 Received: from twinlark.arctic.org ([168.75.98.6]:53398 "EHLO twinlark.arctic.org") by vger.kernel.org with ESMTP id S272216AbUKAUvo (ORCPT ); Mon, 1 Nov 2004 15:51:44 -0500 Date: Mon, 1 Nov 2004 12:51:43 -0800 (PST) From: dean gaudet To: Marc Bevand cc: linux-kernel@vger.kernel.org Subject: Re: [rc4-amd64] RC4 optimized for AMD64 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1132 Lines: 34 On Mon, 1 Nov 2004, dean gaudet wrote: > On Mon, 1 Nov 2004, Marc Bevand wrote: > > > I have just published a small paper about optimizing RC4 for > > AMD64 (x86-64). A working implementation is also provided: > > > > http://epita.fr/~bevand_m/papers/rc4-amd64.html > > > > Kernel people may be interested given the fact that Linux > > already implements RC4. > > you've made a non-portable flags assumption: > > > dec %r11b > > ror $8, %r8 # (ror does not change ZF) > > jnz 1b > > the contents of ZF are undefined after a rotation... most importantly > they differ between p4 (ZF is set according to result) and k8 (ZF > unchanged). ack... it's too early on a monday morning -- i misread the documentation. this ZF assumption is actually defined and portable... still kind of ugly. how much benefit do you see? -dean - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/