linux/drivers/crypto
Herbert Xu 420a4b20c5 crypto: padlock - Avoid resetting cword on successive operations
Resetting the control word is quite expensive.  Fortunately this
isn't an issue for the common operations such as CBC and ECB as
the whole operation is done through a single call.  However, modes
such as LRW and XTS have to call padlock over and over again for
one operation which really hurts if each call resets the control
word.

This patch uses an idea by Sebastian Siewior to store the last
control word used on a CPU and only reset the control word if
that changes.

Note that any task switch automatically resets the control word
so we only need to be accurate with regard to the stored control
word when no task switches occur.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2008-12-25 11:01:20 +11:00
..
Kconfig crypto: ixp4xx - Select CRYPTO_AUTHENC 2008-07-13 20:12:11 +08:00
Makefile crypto: ixp4xx - Hardware crypto support for IXP4xx CPUs 2008-07-10 20:35:16 +08:00
geode-aes.c [CRYPTO] geode: Add __dev{init,exit} annotations 2008-01-11 08:16:38 +11:00
geode-aes.h [CRYPTO] geode: do not copy the IV too often 2008-01-11 08:16:26 +11:00
hifn_795x.c crypto: hifn - Disable driver when physical size exceeds 32 bits 2008-12-25 11:01:07 +11:00
ixp4xx_crypto.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
padlock-aes.c crypto: padlock - Avoid resetting cword on successive operations 2008-12-25 11:01:20 +11:00
padlock-sha.c crypto: padlock - fix VIA PadLock instruction usage with irq_ts_save/restore() 2008-08-13 22:02:26 +10:00
padlock.h [CRYPTO] padlock: Added block cipher versions of CBC/ECB 2006-09-21 11:44:35 +10:00
talitos.c crypto: talitos - Preempt overflow interrupts off-by-one fix 2008-12-25 11:01:17 +11:00
talitos.h crypto: talitos - Perform auth check in h/w if on sec 2.1 and above 2008-12-25 11:01:12 +11:00