LWN.net Logo

Twofish i586/i686 assembler implementation

From:  Fruhwirth Clemens <clemens-dated-1062971317.4e1b@endorphin.org>
To:  cryptoapi-devel@kerneli.org
Subject:  Twofish i586/i686 assembler implementation
Date:  Thu, 28 Aug 2003 23:48:36 +0200
Cc:  linux-kernel@vger.kernel.org, linux-crypto@nl.linux.org

Hi, 

Twofish is now available as assembler implementation for Pentium/PentiumPro.

I've ported the assembler sources of the public domain Twofish
implementation of Counterpane to cryptoapi. Everyone how has ever locked at
2fish_86.asm will for sure admit that it's next to impossible to change it's
assembler: masm. Instead of rewriting everything in nasm or gas, I've
decided to take a shortcut. I used masm to compile it.

That's for sure a sin and I will burn in free software hell, but don't
worry. You don't have to touch masm. I supplied precompiled binaries for you
and as you won't need to port it to another architecture precompiled
binaries are just fine.

http://clemens.endorphin.org/twofish-i586/

However, the first test looks promissing. It's almost twice as fast as the C
implementation. So I think it's worth trying.

FYI in case you'd like to play with the source: It's possible to work
without a Windows environment. Wine runs masm perfectly and masm is
available through some special tricks for free (as in beer). Just have a
look at INSTALL.Linux.

Regards, Clemens

Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds