[PATCH 0/2] Small cleanups for x86 SHA-256

Eric Biggers posted 2 patches 3 months ago
lib/crypto/x86/sha256-avx-asm.S   |  6 ----
lib/crypto/x86/sha256-avx2-asm.S  |  4 ---
lib/crypto/x86/sha256-ni-asm.S    |  5 ----
lib/crypto/x86/sha256-ssse3-asm.S |  5 ----
lib/crypto/x86/sha256.h           | 48 ++++++++++++++++---------------
5 files changed, 25 insertions(+), 43 deletions(-)
[PATCH 0/2] Small cleanups for x86 SHA-256
Posted by Eric Biggers 3 months ago
Two small cleanups for the x86 SHA-256 code.  Applies to libcrypto-next.

Eric Biggers (2):
  lib/crypto: x86/sha256: Move static_call above kernel-mode FPU section
  lib/crypto: x86/sha256: Remove unnecessary checks for nblocks==0

 lib/crypto/x86/sha256-avx-asm.S   |  6 ----
 lib/crypto/x86/sha256-avx2-asm.S  |  4 ---
 lib/crypto/x86/sha256-ni-asm.S    |  5 ----
 lib/crypto/x86/sha256-ssse3-asm.S |  5 ----
 lib/crypto/x86/sha256.h           | 48 ++++++++++++++++---------------
 5 files changed, 25 insertions(+), 43 deletions(-)


base-commit: 5ecd15f4949fd36037725bd719b7d3f866291e6c
-- 
2.50.0
Re: [PATCH 0/2] Small cleanups for x86 SHA-256
Posted by Ard Biesheuvel 3 months ago
On Fri, 4 Jul 2025 at 04:42, Eric Biggers <ebiggers@kernel.org> wrote:
>
> Two small cleanups for the x86 SHA-256 code.  Applies to libcrypto-next.
>
> Eric Biggers (2):
>   lib/crypto: x86/sha256: Move static_call above kernel-mode FPU section
>   lib/crypto: x86/sha256: Remove unnecessary checks for nblocks==0
>

Acked-by: Ard Biesheuvel <ardb@kernel.org>

>  lib/crypto/x86/sha256-avx-asm.S   |  6 ----
>  lib/crypto/x86/sha256-avx2-asm.S  |  4 ---
>  lib/crypto/x86/sha256-ni-asm.S    |  5 ----
>  lib/crypto/x86/sha256-ssse3-asm.S |  5 ----
>  lib/crypto/x86/sha256.h           | 48 ++++++++++++++++---------------
>  5 files changed, 25 insertions(+), 43 deletions(-)
>
>
> base-commit: 5ecd15f4949fd36037725bd719b7d3f866291e6c
> --
> 2.50.0
>