Skip to content

gf128mul refactoring

Ondrej Mosnacek linux-crypto 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 2 repliesIn review
  2. v41 patch 2 repliesSuperseded
  3. v31 patch 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch1 replySuperseded
v11 patch4 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: gf128mul - define gf128mul_x_* in gf128mul.hcrypto/gf128mul.c include/crypto/gf128mul.h+54 -340 replies
2/4crypto: gf128mul - switch gf128mul_x_ble to le128arch/x86/crypto/camellia_glue.c arch/x86/crypto/serpent_sse2_glue.c arch/x86/crypto/twofish_glue_3way.c +3 more+30 -300 replies
3/4crypto: glue_helper - remove the le128_gf128mul_x_ble functionarch/x86/crypto/glue_helper.c arch/x86/include/asm/crypto/glue_helper.h+2 -110 replies
4/4crypto: xts - drop gf128mul dependencycrypto/Kconfig+0 -10 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchEric Biggers
SeriesR-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/4] gf128mul refactoring

This patchset contains the following gf128mul-related changes:
1. The gf128mul_x_* functions are moved to gf128mul.h for performance reasons.
2. The gf128mul_x_ble function is fixed to use the correct block type.
3. The le128_gf128mul_x_ble function from glue_helper.h is removed and its usages replaced with gf128mul_x_ble calls.
4. The now obsolete dependency of CRYPTO_XTS on CRYPTO_GF128MUL is removed.

v4 -> v5: added the other three patches
v3 -> v4: a faster version of gf128mul_x_lle
v2 -> v3: constant-time implementation
v1 -> v2: move all _x_ functions to the header, not just gf128mul_x_ble

Ondrej Mosnacek (4):
crypto: gf128mul - define gf128mul_x_* in gf128mul.h
crypto: gf128mul - switch gf128mul_x_ble to le128
crypto: glue_helper - remove the le128_gf128mul_x_ble function
crypto: xts - drop gf128mul dependency

 arch/x86/crypto/camellia_glue.c           |  4 +--
 arch/x86/crypto/glue_helper.c             |  3 +-
 arch/x86/crypto/serpent_sse2_glue.c       |  4 +--
 arch/x86/crypto/twofish_glue_3way.c       |  4 +--
 arch/x86/include/asm/crypto/glue_helper.h | 10 ------
 crypto/Kconfig                            |  1 -
 crypto/gf128mul.c                         | 33 +------------------
 crypto/xts.c                              | 38 ++++++++++-----------
 include/crypto/gf128mul.h                 | 55 +++++++++++++++++++++++++++++--
 include/crypto/xts.h                      |  2 +-
 10 files changed, 82 insertions(+), 72 deletions(-)
Signature · 1 line
2.9.3