classpathx-crypto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-crypto] [patch] Inlined Serpent


From: Casey Marshall
Subject: Re: [Classpathx-crypto] [patch] Inlined Serpent
Date: Sat, 07 Sep 2002 18:10:24 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raif S. Naffah wrote:
| hello Casey,
|
| [...]
|
| | ...By the way with this
| | version GNU's Serpent will be faster than BouncyCastle's.
|
| have you compared the performance of other algorithms?
|

Where they intersect (the "cool" AES candidates Rijndael, Serpent, and
Twofish) BC wins with Twofish, while GNU's Rijndael does better.

Take, of course, these benchmarks with as large a grain of salt as you
see fit 8-).

|
| | | i see some advantages in keeping the current implementation _and_
| adding
| | | the new in-lined one as an alternative; say SerpentInLined? (naming
| | | suggestions are welcome)
| | |
| |
| | I wonder if a naming scheme following "SerpentSBoxImpl" or something
| | similar is more appropriate, since what we're talking about here is a
| | particular implementation of "bit-sliced" S-Boxes.
|
| with the figures of the new implementation, do we still want to keep both?
|

I don't see any compelling reason to keep the old one. Plus I like the
new version better -- passing arrays to the S-box and transform methods
was clever, but probably not the best way to do it.

As one more idea, attached is a version of Serpent that Dag sent me that
replaces the int[] version of the session key with a new class,
SerpentKey, which just has 132 integer fields k0..k131. This avoids
bounds-checking, and I can get this version up to 15MB/s when compiled
with GCJ.

- --
Casey Marshall < address@hidden > http://metastatic.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE9eqOAgAuWMgRGsWsRAsCPAJ47xFBGTu9jqjdWFRnMjIFkToi/GQCePPdC
lw6pGQ7TB19LUI6uLkuye74=
=IvJT
-----END PGP SIGNATURE-----

Attachment: serpent-gcj.tar.gz
Description: application/gzip


reply via email to

[Prev in Thread] Current Thread [Next in Thread]