]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - Introduce READ_PARTIAL_BLOCK macro
authorDave Watson <davejwatson@fb.com>
Mon, 10 Dec 2018 19:59:26 +0000 (19:59 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:42 +0000 (11:52 +0800)
commitd60fe30da01098a49b3c9d80fc8e783108b8251a
treec02c25aaf62e53d68b66a754356315502e3c98fb
parent7b7c303ba0dd655bbe080dfb25e9e6494baa17c7
crypto: aesni - Introduce READ_PARTIAL_BLOCK macro

Introduce READ_PARTIAL_BLOCK macro, and use it in the two existing
partial block cases: AAD and the end of ENC_DEC.   In particular,
the ENC_DEC case should be faster, since we read by 8/4 bytes if
possible.

This macro will also be used to read partial blocks between
enc_update and dec_update calls.

Signed-off-by: Dave Watson <davejwatson@fb.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_avx-x86_64.S