]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CRYPTO] aes-generic: Make key generation exportable
authorSebastian Siewior <sebastian@breakpoint.cc>
Thu, 8 Nov 2007 13:20:30 +0000 (21:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:09 +0000 (08:16 +1100)
commit96e82e4551d38e0863b366a7b61185bc4a9946cc
tree514e38d847cb09c55230ceb3088329ed4175c55c
parentbe5fb270125729b7bca7879967f1dfadff0d9841
[CRYPTO] aes-generic: Make key generation exportable

This patch exports four tables and the set_key() routine. This ressources
can be shared by other AES implementations (aes-x86_64 for instance).
The decryption key has been turned around (deckey[0] is the first piece
of the key instead of deckey[keylen+20]). The encrypt/decrypt functions
are looking now identical (except they are using different tables and
key).

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aes_generic.c
include/crypto/aes.h