commit | ae952c5ec655b2b8bb337acb554d53481b0e01bc | [log] [tgz] |
---|---|---|
author | Dave Watson <davejwatson@fb.com> | Wed Feb 14 09:40:19 2018 -0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Feb 22 22:16:49 2018 +0800 |
tree | ef96fbbe5a3a2edfb7d96bf89e874cc1f74f1aa2 | |
parent | 1476db2d129d5e4fc59e93a7abd22edcb26b52f5 [diff] |
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>