[CRYPTO] salsa20_generic: Fix multi-page processing
authorTan Swee Heng <thesweeheng@gmail.com>
Fri, 7 Dec 2007 08:38:45 +0000 (16:38 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:34 +0000 (08:16 +1100)
commiteb6f13eb9f812f5812ed5d14f241309da369dee6
treeeb49b8f64333e9389852dcd99a38279a076150d6
parent7f6813786a6521380e1756ca5b4336bc63c5bf7d
[CRYPTO] salsa20_generic: Fix multi-page processing

This patch fixes the multi-page processing bug that affects large test
vectors (the same bug that previously affected ctr.c).

There is an optimization for the case walk.nbytes == nbytes. Also we
now use crypto_xor() instead of adhoc XOR routines.

Signed-off-by: Tan Swee Heng <thesweeheng@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/salsa20_generic.c