]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 16 Dec 2011 01:14:21 +0000 (17:14 -0800)
commita60e7266599f9b7ad55874d0f060567498c30e11
treeda4b911ab210e98473200cb08344a56b43a6ec70
parenta5b28e7e5ca3f813b0098ceafdd6f993a8ab6843
crypto: mv_cesa - fix hashing of chunks > 1920 bytes

commit 274252862f386b7868f35bf5ceaa5391a8ccfdf3 upstream.

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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/crypto/mv_cesa.c