linux/drivers/crypto/vmx
Ard Biesheuvel 45fe93dff2 crypto: algapi - make crypto_xor() take separate dst and src arguments
There are quite a number of occurrences in the kernel of the pattern

  if (dst != src)
          memcpy(dst, src, walk.total % AES_BLOCK_SIZE);
  crypto_xor(dst, final, walk.total % AES_BLOCK_SIZE);

or

  crypto_xor(keystream, src, nbytes);
  memcpy(dst, keystream, nbytes);

where crypto_xor() is preceded or followed by a memcpy() invocation
that is only there because crypto_xor() uses its output parameter as
one of the inputs. To avoid having to add new instances of this pattern
in the arm64 code, which will be refactored to implement non-SIMD
fallbacks, add an alternative implementation called crypto_xor_cpy(),
taking separate input and output arguments. This removes the need for
the separate memcpy().

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-08-04 09:27:15 +08:00
..
.gitignore crypto: vmx - Ignore generated files 2016-07-20 22:41:44 +08:00
aes_cbc.c crypto: vmx - remove unnecessary check 2017-06-20 11:21:49 +08:00
aes_ctr.c crypto: algapi - make crypto_xor() take separate dst and src arguments 2017-08-04 09:27:15 +08:00
aes_xts.c crypto: vmx - remove unnecessary check 2017-06-20 11:21:49 +08:00
aes.c crypto: vmx - remove unnecessary check 2017-06-20 11:21:49 +08:00
aesp8-ppc.h
aesp8-ppc.pl crypto: vmx - Fix aes_p8_xts_decrypt build failure 2016-07-20 22:41:45 +08:00
ghash.c crypto: vmx - Fix memory corruption caused by p8_ghash 2016-10-02 22:26:42 +08:00
ghashp8-ppc.pl
Kconfig crypto: vmx - Ensure ghash-generic is enabled 2016-10-02 22:33:44 +08:00
Makefile crypto: vmx - various build fixes 2016-11-17 23:35:02 +08:00
ppc-xlate.pl
vmx.c powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00