linux-imx/drivers/crypto
Herbert Xu 474a751770 crypto: padlock - Fix AES-CBC handling on odd-block-sized input
commit c054a076a1 upstream.

On certain VIA chipsets AES-CBC requires the input/output to be
a multiple of 64 bytes.  We had a workaround for this but it was
buggy as it sent the whole input for processing when it is meant
to only send the initial number of blocks which makes the rest
a multiple of 64 bytes.

As expected this causes memory corruption whenever the workaround
kicks in.

Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
2010-12-14 23:40:17 +01:00
..
amcc crypto: crypto4xx - Fix build breakage 2010-06-03 16:57:24 +10:00
geode-aes.c crypto: geode-aes - Fix some code style issues 2010-04-19 21:02:41 +08: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_795x - Rename ablkcipher_walk to hifn_cipher_walk 2010-05-19 13:56:37 +10:00
ixp4xx_crypto.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
Kconfig crypto: n2 - Add Niagara2 crypto driver 2010-05-19 14:14:04 +10:00
Makefile crypto: n2 - Add Niagara2 crypto driver 2010-05-19 14:14:04 +10:00
mv_cesa.c crypto: mv_cesa - Use resource_size 2010-05-14 14:58:05 +10:00
mv_cesa.h crypto: mv_cesa - Add sha1 and hmac(sha1) async hash drivers 2010-04-13 16:50:49 +08:00
n2_asm.S crypto: n2 - Add Niagara2 crypto driver 2010-05-19 14:14:04 +10:00
n2_core.c n2_crypto: Plumb fallback ahash requests properly. 2010-05-25 17:37:15 -07:00
n2_core.h crypto: n2 - Add Niagara2 crypto driver 2010-05-19 14:14:04 +10:00
omap-sham.c crypto: omap - sha1 & md5 driver 2010-05-03 11:10:59 +08:00
padlock-aes.c crypto: padlock - Fix AES-CBC handling on odd-block-sized input 2010-12-14 23:40:17 +01:00
padlock-sha.c crypto: padlock-sha - Add import/export support 2010-02-02 06:50:25 +11:00
padlock.h [CRYPTO] padlock: Added block cipher versions of CBC/ECB 2006-09-21 11:44:35 +10:00
talitos.c crypto: talitos - fix bug in sg_copy_end_to_buffer 2010-07-19 14:11:24 +08:00
talitos.h crypto: talitos - add support for sha224 2010-05-19 19:21:53 +10:00