]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
crypto: mv_cesa - fix hashing of chunks > 1920 bytes
authorPhil Sutter <phil.sutter@viprinet.com>
Wed, 16 Nov 2011 17:28:01 +0000 (18:28 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Nov 2011 08:23:08 +0000 (16:23 +0800)
commit274252862f386b7868f35bf5ceaa5391a8ccfdf3
treeced6f14754a305b0872cfdf3ef2643377fa8f348
parent3acc84739dd5d746840f881ad4d60bd2a428f1dd
crypto: mv_cesa - fix hashing of chunks > 1920 bytes

This was broken by commit 7759995c75ae0cbd4c861582908449f6b6208e7a (yes,
myself). The basic problem here is since the digest state is only saved
after the last chunk, the state array is only valid when handling the
first chunk of the next buffer. Broken since linux-3.0.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Cc: <stable@kernel.org> # 3.1.x
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c