]> git.baikalelectronics.ru Git - kernel.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)
commitf61c5700eaff6737320c0e7820f467250b0637e1
treeced6f14754a305b0872cfdf3ef2643377fa8f348
parentd6389e4ae76ce68031110ebf313bbfd314f4e6f8
crypto: mv_cesa - fix hashing of chunks > 1920 bytes

This was broken by commit 2c3c9903d8da64ee3da1ead975f23ba3d9604dc5 (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