]> asedeno.scripts.mit.edu Git - linux.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)
commitec8c02d9a30b8324d7aae9e4e7a08973a8eaa8b4
treec02c25aaf62e53d68b66a754356315502e3c98fb
parent517a448e09846732d46e983a2195002d05857919
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