[KERNELI-PATCH] Twofish for the cipherapi.

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

 



Hi Alex!

As you know, I've ported the Twofish implementation of GnuPG
(http://www.gnupg.org) to the cipherapi of the kerneli patch
(http://www.kerneli.org/). You need to patch include/linux/crypto.h and
util-linux to use a cipher id you like. I don't want to mess around with
the loop_fish2.c driver. If you find this implementation worth of being
able to replace the other twofish, then it can take its number. 192 bits
mode is not working for this twofish.c, but not hard to obtain.

This patch assumes my changes to loop_gen.c, so no need to patch that
file. Please consider applying:

It works for me:

prompt$ ./speed | grep fish
Registered twofish (9)
Registered twofish-cbc (65545)
Registered blowfish (4)
Registered blowfish-cbc (65540)
Testing cipher blowfish, number 4..seems to work
encrypt blowfish        =    97908 usec/MB; 10.214 MB/s; 81.709 Mb/s
decrypt blowfish        =    78719 usec/MB; 12.703 MB/s; 101.627 Mb/s
encrypt blowfish-cbc    =    67178 usec/MB; 14.886 MB/s; 119.087 Mb/s
decrypt blowfish-cbc    =    87712 usec/MB; 11.401 MB/s; 91.208 Mb/s
Testing cipher twofish, number 9..seems to work
encrypt twofish         =   137124 usec/MB;  7.293 MB/s; 58.341 Mb/s
decrypt twofish         =   127834 usec/MB;  7.823 MB/s; 62.581 Mb/s
encrypt twofish-cbc     =   111974 usec/MB;  8.931 MB/s; 71.445 Mb/s
decrypt twofish-cbc     =   114556 usec/MB;  8.729 MB/s; 69.835 Mb/s

prompt$ ./aes-test twofish ecb_tbl_sans_192.txt | grep -v OK
prompt$

aes-test is a small bash script I wrote on top of testcip. It should go
into crypto/testing. ecb_tbl.txt is contained for each of the fifteen
AES candiadates in their respective known-answer test tables, available
from the NIST-AES homepage www.nist.gov/aes.

-- 
Marc Mutz <Marc@xxxxxxxx>        http://marc.mutz.com/Encryption-HOWTO/
University of Bielefeld, Dep. of Mathematics / Dep. of Physics

PGP-keyID's:   0xd46ce9ab (RSA), 0x7ae55b9e (DSS/DH)

Attachment: twofish+aes_test.patch.bz2
Description: Binary data


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux