Skip to content

crypto: clean up ARM/arm64 glue code for GHASH and GCM

Ard Biesheuvel linux-crypto linux-sparse 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: arm64/ghash - drop PMULL based shasharch/arm64/crypto/ghash-ce-glue.c+12 -780 replies
2/5crypto: arm64/gcm - disentangle ghash and gcm setkey() routinesarch/arm64/crypto/ghash-ce-glue.c+22 -250 replies
3/5crypto: arm64/gcm - use variably sized key structarch/arm64/crypto/ghash-ce-glue.c+21 -283 replies
4/5crypto: arm64/gcm - use inline helper to suppress indirect callsarch/arm64/crypto/ghash-ce-glue.c+46 -390 replies
5/5crypto: arm/ghash - use variably sized key structarch/arm/crypto/ghash-ce-glue.c+24 -274 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] crypto: clean up ARM/arm64 glue code for GHASH and GCM

Get rid of pointless indirect calls where the target of the call is decided at boot and never changes. Also, make the size of the key struct variable, and only carry the extra keys needed for aggregation when using a version of the algorithm that makes use of them.

Ard Biesheuvel (5):
crypto: arm64/ghash - drop PMULL based shash
crypto: arm64/gcm - disentangle ghash and gcm setkey() routines
crypto: arm64/gcm - use variably sized key struct
crypto: arm64/gcm - use inline helper to suppress indirect calls
crypto: arm/ghash - use variably sized key struct

 arch/arm/crypto/ghash-ce-glue.c   |  51 ++--
 arch/arm64/crypto/ghash-ce-glue.c | 257 +++++++-------------
 2 files changed, 118 insertions(+), 190 deletions(-)
Signature · 1 line
2.20.1