]> 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)
commit7e68406ce2da7bf14dc2468cf2095860d9944990
treeced6f14754a305b0872cfdf3ef2643377fa8f348
parent8434c8d071e61a4850dca3e572175b506a5da3bc
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