[CRYPTO] all: Pass tfm instead of ctx to algorithms
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 May 2006 12:09:29 +0000 (22:09 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jun 2006 07:34:39 +0000 (17:34 +1000)
commit6c2bb98bc33ae33c7a33a133a4cd5a06395fece5
tree96684cd2c473cd05d651ce1fa3dd72b1b4b19b09
parent43600106e32809a4dead79fec67a63e9860e3d5d
[CRYPTO] all: Pass tfm instead of ctx to algorithms

Up until now algorithms have been happy to get a context pointer since
they know everything that's in the tfm already (e.g., alignment, block
size).

However, once we have parameterised algorithms, such information will
be specific to each tfm.  So the algorithm API needs to be changed to
pass the tfm structure instead of the context pointer.

This patch is basically a text substitution.  The only tricky bit is
the assembly routines that need to get the context pointer offset
through asm-offsets.h.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
37 files changed:
arch/i386/crypto/aes-i586-asm.S
arch/i386/crypto/aes.c
arch/i386/kernel/asm-offsets.c
arch/s390/crypto/aes_s390.c
arch/s390/crypto/des_s390.c
arch/s390/crypto/sha1_s390.c
arch/s390/crypto/sha256_s390.c
arch/x86_64/crypto/aes-x86_64-asm.S
arch/x86_64/crypto/aes.c
arch/x86_64/kernel/asm-offsets.c
crypto/aes.c
crypto/anubis.c
crypto/arc4.c
crypto/blowfish.c
crypto/cast5.c
crypto/cast6.c
crypto/cipher.c
crypto/compress.c
crypto/crc32c.c
crypto/crypto_null.c
crypto/deflate.c
crypto/des.c
crypto/digest.c
crypto/khazad.c
crypto/md4.c
crypto/md5.c
crypto/michael_mic.c
crypto/serpent.c
crypto/sha1.c
crypto/sha256.c
crypto/sha512.c
crypto/tea.c
crypto/tgr192.c
crypto/twofish.c
crypto/wp512.c
drivers/crypto/padlock-aes.c
include/linux/crypto.h