Pentium optimized (non-MMX) AES cipher implementation for CryptoAPI
===================================================================

This cipher implementation is approximately twice as fast as the
ANSI-C implementation shipped with cryptoapi 0.1.0;

This implementation is based on Dr Brian Gladmans work. See comments
in cipher-aes-i586.S for copyright information.

Installation
------------

There are 2 options for installing this cipher;

1.) compile as module against /lib/modules/$(shell uname -r)/build

 $ make modules
   (creates cipher-aes-i586.c and compiles cipher-aes.o module)

 $ make modules_install
   (make sure it overwrites the previously installed cipher-aes.o!)

2.) drop-in replacement (required for static linking)

 NOTE: You need a kernel source tree containing cryptoapi for this to work!

 $ make cipher-aes-i586.c
  
 $ cp cipher-aes.c cipher-aes-i586.c /usr/src/linux/crypto/ciphers/
   (replace '/usr/src/linux' with the actual location of your cryptoapi
    enabled kernel source tree)

 $ [compile your kernel as usual - make sure the AES cipher is enabled in
    your kernel config]

PS: In order to verify you have the correct cipher-aes.o in your path,
you can use modinfo(8):

# modinfo cipher-aes
filename:    /lib/modules/2.4.19-xfs/kernel/drivers/cryptoapi/cipher-aes.o
description: "AES (Rijndael) Cipher (i586 optimized) / CryptoAPI"
author:      "Dr Brian Gladman <brg@gladman.uk.net>"
license:     "Dual BSD/GPL"


good luck!
--
hvr