Skip to content

lib/crypto: x86/sha512: Partially roll up loops

Eric Biggers linux-crypto 1 version Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2lib/crypto: x86/sha512: Partially roll up sha512_transform_avx()lib/crypto/x86/sha512-avx-asm.S+67 -571 reply
2/2lib/crypto: x86/sha512: Partially roll up sha512_transform_ssse3()lib/crypto/x86/sha512-ssse3-asm.S+68 -581 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchArd Biesheuvel
1/2A-b
2/2A-b

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

Read the v1 thread

Cover letter [PATCH 0/2] lib/crypto: x86/sha512: Partially roll up loops

Some freshly baked loop rolls in the SSSE3 and AVX optimized SHA-512 code.

In each file, SHA-512 rounds 14 through 77 are rolled up into 8 groups of 8 rounds. This saves 20.2 KB of text. It's also likely to increase performance on the CPUs that actually run this code (i.e., CPUs without AVX2), due to the improved use of the cache, though the oldest I was able to confirm that on is Haswell which has AVX2 anyway.

Eric Biggers (2):
lib/crypto: x86/sha512: Partially roll up sha512_transform_avx() lib/crypto: x86/sha512: Partially roll up sha512_transform_ssse3()

 lib/crypto/x86/sha512-avx-asm.S   | 124 +++++++++++++++--------------
 lib/crypto/x86/sha512-ssse3-asm.S | 126 ++++++++++++++++--------------
 2 files changed, 135 insertions(+), 115 deletions(-)

base-commit: 33b4f31b1aea3f62b61c892daefc0e6a77859032

Signature · 1 line
2.56.1