]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5e96e257705b727a2538ccbdd3f3cb2af8a9a36
treeffcc30c47b97908ce5b5406db7013ac77d598b2c
parent8ddd2b624af7cc0f9aef5c035d72713c892765a9
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