crypto: aesni - Introduce partial block macro
authorDave Watson <davejwatson@fb.com>
Mon, 10 Dec 2018 19:59:38 +0000 (19:59 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 23 Dec 2018 03:52:42 +0000 (11:52 +0800)
commite044d5056396029cc12ed5354aa2a073b747195a
treec674c6608a3cbe61b068d2b043c00b31656d46ad
parentec8c02d9a30b8324d7aae9e4e7a08973a8eaa8b4
crypto: aesni - Introduce partial block macro

Before this diff, multiple calls to GCM_ENC_DEC will
succeed, but only if all calls are a multiple of 16 bytes.

Handle partial blocks at the start of GCM_ENC_DEC, and update
aadhash as appropriate.

The data offset %r11 is also updated after the partial block.

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