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

In chacha_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/chacha_generic.c