From: Eric Biggers <ebiggers@kernel.org>
To: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 0/8] SHA-256 cleanup
Date: Fri, 16 May 2025 19:24:20 -0700 [thread overview]
Message-ID: <20250517022428.401622-1-ebiggers@kernel.org> (raw)
This series restores the SHA-256 code to have a clean design where the
crypto_shash API is implemented on top of the regular library API
instead of a special unsafe low-level API. Diffstat is -41 lines.
Eric Biggers (8):
Revert "crypto: sha256 - Use the partial block API"
Revert "crypto: lib/sha256 - Use generic block helper"
Revert "crypto: x86/sha256 - Add simd block function"
Revert "crypto: riscv/sha256 - Add simd block function"
Revert "crypto: arm64/sha256 - Add simd block function"
Revert "crypto: arm/sha256 - Add simd block function"
Revert "crypto: sha256 - Use the partial block API for generic"
Revert "crypto: lib/sha256 - Add helpers for block-based shash"
arch/arm/lib/crypto/Kconfig | 1 -
arch/arm/lib/crypto/sha256-armv4.pl | 20 ++--
arch/arm/lib/crypto/sha256.c | 14 +--
arch/arm64/crypto/sha512-glue.c | 6 +-
arch/arm64/lib/crypto/Kconfig | 1 -
arch/arm64/lib/crypto/sha2-armv8.pl | 2 +-
arch/arm64/lib/crypto/sha256.c | 14 +--
arch/riscv/lib/crypto/Kconfig | 1 -
arch/riscv/lib/crypto/sha256.c | 13 +--
arch/x86/lib/crypto/Kconfig | 1 -
arch/x86/lib/crypto/sha256.c | 12 +--
crypto/sha256.c | 142 ++++++++++------------------
include/crypto/internal/sha2.h | 52 ++--------
include/crypto/sha2.h | 7 +-
lib/crypto/Kconfig | 8 --
lib/crypto/sha256.c | 97 +++++++++++++++----
16 files changed, 175 insertions(+), 216 deletions(-)
base-commit: 1bafd82d9a40cf09c6c40f1c09cc35b7050b1a9f
--
2.49.0
next reply other threads:[~2025-05-17 2:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-17 2:24 Eric Biggers [this message]
2025-05-17 2:24 ` [PATCH 1/8] Revert "crypto: sha256 - Use the partial block API" Eric Biggers
2025-05-17 2:24 ` [PATCH 2/8] Revert "crypto: lib/sha256 - Use generic block helper" Eric Biggers
2025-05-17 2:24 ` [PATCH 3/8] Revert "crypto: x86/sha256 - Add simd block function" Eric Biggers
2025-05-17 2:24 ` [PATCH 4/8] Revert "crypto: riscv/sha256 " Eric Biggers
2025-05-17 2:24 ` [PATCH 5/8] Revert "crypto: arm64/sha256 " Eric Biggers
2025-05-17 2:24 ` [PATCH 6/8] Revert "crypto: arm/sha256 " Eric Biggers
2025-05-17 2:24 ` [PATCH 7/8] Revert "crypto: sha256 - Use the partial block API for generic" Eric Biggers
2025-05-17 2:24 ` [PATCH 8/8] Revert "crypto: lib/sha256 - Add helpers for block-based shash" Eric Biggers
2025-05-17 4:04 ` [PATCH 0/8] SHA-256 cleanup Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250517022428.401622-1-ebiggers@kernel.org \
--to=ebiggers@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox