]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite164183e2de329f316811881b62ae1c6f42a73b3
tree04518f1abf14116f9264c528b193ad25fe94c698
parent8abc8bd861e4f6a72d0189f20f91b723f7d59fa7
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