]> git.baikalelectronics.ru Git - 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)
commitd1c58d1332a8ec2b341f460831dc9a2f90e9da2b
tree5b53201c04a434464fc68379ac2989cf8fd8027a
parent22bb1d3dbdd8dc1c4769df36573acea5ed70cbde
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