crypto: salsa20-generic - use crypto_xor_cpy()
authorEric Biggers <ebiggers@google.com>
Fri, 15 Mar 2019 04:21:28 +0000 (21:21 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Mar 2019 12:57:28 +0000 (20:57 +0800)
commitf6fff17072232480ef471eae80a22b66b1dd8b7a
tree798544822b28f3eb3d1d59699b34e280f30440e0
parent29d97dec22dde5d2c4ccb23c50a11e94a5911861
crypto: salsa20-generic - use crypto_xor_cpy()

In salsa20_docrypt(), use crypto_xor_cpy() instead of crypto_xor().
This avoids having to memcpy() the src buffer to the dst buffer.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/salsa20_generic.c