]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
crypto: talitos - fix ahash for multiple of blocksize
authorLee Nipper <lee.nipper@gmail.com>
Wed, 16 Jun 2010 05:29:15 +0000 (15:29 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Jun 2010 05:29:15 +0000 (15:29 +1000)
commit5e833bc4166ea524c00a95e777e4344844ed189f
tree5b53201c04a434464fc68379ac2989cf8fd8027a
parent5b04fc170382195d7d33fd08e3ccc2ad8e50e782
crypto: talitos - fix ahash for multiple of blocksize

Correct ahash_process_req() to properly handle cases
where the total hash amount is a multiple of the blocksize.
The SEC must have some data to hash during the very last
descriptor operation; so up to one whole blocksize
of data is buffered until the final hash.

Signed-off-by: Lee Nipper <lee.nipper@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c