[CRYPTO] Fix boundary check in standard multi-block cipher processors
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 6 Sep 2005 21:49:44 +0000 (14:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2005 21:49:44 +0000 (14:49 -0700)
The boundary check in the standard multi-block cipher processors are
broken when nbytes is not a multiple of bsize.  In those cases it will
always process an extra block.

This patch corrects the check so that it processes at most nbytes of
data.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
crypto/cipher.c

diff --cc crypto/cipher.c
Simple merge