crypto: aesni - Add GCM_INIT macro
authorDave Watson <davejwatson@fb.com>
Wed, 14 Feb 2018 17:38:45 +0000 (09:38 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:44 +0000 (22:16 +0800)
commit7af964c2fc7f415b334eb9d2e52ebdf258df662e
tree20879cc2d1d9760e3fe98fb311c8ec1f33ef767a
parent6c2c86b3e05822abec2fc0d7a5c31637b57cb126
crypto: aesni - Add GCM_INIT macro

Reduce code duplication by introducting GCM_INIT macro.  This macro
will also be exposed as a function for implementing scatter/gather
support, since INIT only needs to be called once for the full
operation.

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