crypto: aesni - Introduce partial block macro
authorDave Watson <davejwatson@fb.com>
Wed, 14 Feb 2018 17:40:19 +0000 (09:40 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:49 +0000 (22:16 +0800)
commitae952c5ec655b2b8bb337acb554d53481b0e01bc
treeef96fbbe5a3a2edfb7d96bf89e874cc1f74f1aa2
parent1476db2d129d5e4fc59e93a7abd22edcb26b52f5
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_asm.S