linux/drivers/crypto
Herbert Xu 332f8840f7 [CRYPTO] ablkcipher: Add distinct ABLKCIPHER type
Up until now we have ablkcipher algorithms have been identified as
type BLKCIPHER with the ASYNC bit set.  This is suboptimal because
ablkcipher refers to two things.  On the one hand it refers to the
top-level ablkcipher interface with requests.  On the other hand it
refers to and algorithm type underneath.

As it is you cannot request a synchronous block cipher algorithm
with the ablkcipher interface on top.  This is a problem because
we want to be able to eventually phase out the blkcipher top-level
interface.

This patch fixes this by making ABLKCIPHER its own type, just as
we have distinct types for HASH and DIGEST.  The type it associated
with the algorithm implementation only.

Which top-level interface is used for synchronous block ciphers is
then determined by the mask that's used.  If it's a specific mask
then the old blkcipher interface is given, otherwise we go with the
new ablkcipher interface.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2008-01-11 08:16:15 +11:00
..
geode-aes.c [CRYPTO] geode: Add fallback for unsupported modes 2008-01-11 08:16:11 +11:00
geode-aes.h [CRYPTO] geode: Add fallback for unsupported modes 2008-01-11 08:16:11 +11:00
hifn_795x.c [CRYPTO] ablkcipher: Add distinct ABLKCIPHER type 2008-01-11 08:16:15 +11:00
Kconfig [CRYPTO] hifn: Make Kconfig option depend on PCI 2008-01-11 08:16:13 +11:00
Makefile [CRYPTO] hifn_795x: HIFN 795x driver 2008-01-11 08:16:01 +11:00
padlock-aes.c [CRYPTO] aes: Move common defines into a header file 2008-01-11 08:16:04 +11:00
padlock-sha.c [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
padlock.h [CRYPTO] padlock: Added block cipher versions of CBC/ECB 2006-09-21 11:44:35 +10:00