OSDN Git Service

crypto: arm64/gcm - disentangle ghash and gcm setkey() routines
authorArd Biesheuvel <ardb@kernel.org>
Mon, 29 Jun 2020 07:39:22 +0000 (09:39 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 12:14:32 +0000 (22:14 +1000)
commit94fe4501cd2a9989d1a134423e12435482c12120
treeffcc30c47b97908ce5b5406db7013ac77d598b2c
parent37b6aab68fae17484173776ac8461613f96f6642
crypto: arm64/gcm - disentangle ghash and gcm setkey() routines

The remaining ghash implementation does not support aggregation, and so
there is no point in including the precomputed powers of H in the key
struct. So move that into the GCM setkey routine, and get rid of the
shared sub-routine entirely.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/ghash-ce-glue.c