crypto: padlock - Fix hashing of partial blocks
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2009 02:33:27 +0000 (10:33 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2009 02:33:27 +0000 (10:33 +0800)
commite9b25f16cda88b33fe15b30c009912e6c471edda
tree088b467b09f050bf7d6cc867d0ce8190d9e2ee4b
parentcbc86b9161b40f95caee0e56381b68956fc28cc4
crypto: padlock - Fix hashing of partial blocks

When we encounter partial blocks in finup, we'll invoke the xsha
instruction with a bogus count that is not a multiple of the block
size.  This patch fixes it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock-sha.c