]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sha-s390 - Reset index after processing partial block
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Feb 2011 09:26:06 +0000 (20:26 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Feb 2011 09:26:06 +0000 (20:26 +1100)
commitc9a9e41d46c7a3ec4f392b33e9ed4f2c4065fef2
tree54ed61190b0710813b68fadbbd25bed47c3f31f1
parentd3a81907fb3f349bc2b901bf118a200f0c9a1c16
crypto: sha-s390 - Reset index after processing partial block

The partial block handling in sha-s390 is broken when we get a
partial block that is followed by an update which fills it with
bytes left-over.  Instead of storing the newly left-over bytes
at the start of the buffer, it will be stored immediately after
the previous partial block.

This patch fixes this by resetting the index pointer.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/crypto/sha_common.c