Skip to content

crypto: sha256 - Use partial block API

Herbert Xu linux-crypto linux-rt-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 4 repliesIn review
  2. v112 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: lib/sha256 - Add helpers for block-based shashinclude/crypto/internal/sha2.h lib/crypto/Kconfig lib/crypto/sha256.c+62 -237 replies
2/9crypto: sha256 - Use the partial block API for genericcrypto/sha256.c include/crypto/sha2.h+56 -410 replies
3/9crypto: arch/sha256 - Export block functions as GPL onlyarch/arm/lib/crypto/sha256.c arch/arm64/lib/crypto/sha256.c arch/mips/cavium-octeon/crypto/octeon-sha256.c +5 more+16 -160 replies
4/9crypto: arm/sha256 - Add simd block functionarch/arm/lib/crypto/Kconfig arch/arm/lib/crypto/sha256-armv4.pl arch/arm/lib/crypto/sha256.c+18 -170 replies
5/9crypto: arm64/sha256 - Add simd block functionarch/arm64/crypto/sha512-glue.c arch/arm64/lib/crypto/Kconfig arch/arm64/lib/crypto/sha2-armv8.pl +1 more+12 -110 replies
6/9crypto: riscv/sha256 - Add simd block functionarch/riscv/lib/crypto/Kconfig arch/riscv/lib/crypto/sha256.c+10 -40 replies
7/9crypto: x86/sha256 - Add simd block functionarch/x86/lib/crypto/Kconfig arch/x86/lib/crypto/sha256.c+10 -30 replies
8/9crypto: lib/sha256 - Use generic block helperinclude/crypto/internal/sha2.h lib/crypto/sha256.c+12 -700 replies
9/9crypto: sha256 - Use the partial block APIcrypto/sha256.c+58 -230 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [v2 PATCH 0/9] crypto: sha256 - Use partial block API

This is based on

	https://patchwork.kernel.org/project/linux-crypto/list/?series=957785

which in turn is applied on top of

	https://patchwork.kernel.org/project/linux-crypto/list/?series=957558

Rather than going through the lib/sha256 partial block handling, use the native shash partial block API. Add two extra shash algorithms to provide testing coverage for lib/sha256.

Herbert Xu (9):
crypto: lib/sha256 - Add helpers for block-based shash
crypto: sha256 - Use the partial block API for generic
crypto: arch/sha256 - Export block functions as GPL only
crypto: arm/sha256 - Add simd block function
crypto: arm64/sha256 - Add simd block function
crypto: riscv/sha256 - Add simd block function
crypto: x86/sha256 - Add simd block function
crypto: lib/sha256 - Use generic block helper
crypto: sha256 - Use the partial block API

 arch/arm/lib/crypto/Kconfig                   |   1 +
 arch/arm/lib/crypto/sha256-armv4.pl           |  20 +--
 arch/arm/lib/crypto/sha256.c                  |  16 +-
 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                |  16 +-
 .../mips/cavium-octeon/crypto/octeon-sha256.c |   4 +-
 arch/powerpc/lib/crypto/sha256.c              |   4 +-
 arch/riscv/lib/crypto/Kconfig                 |   1 +
 arch/riscv/lib/crypto/sha256.c                |  17 +-
 arch/s390/lib/crypto/sha256.c                 |   4 +-
 arch/sparc/lib/crypto/sha256.c                |   4 +-
 arch/x86/lib/crypto/Kconfig                   |   1 +
 arch/x86/lib/crypto/sha256.c                  |  16 +-
 crypto/sha256.c                               | 148 +++++++++++-------
 include/crypto/internal/sha2.h                |  52 +++++-
 include/crypto/sha2.h                         |  14 +-
 lib/crypto/Kconfig                            |   8 +
 lib/crypto/sha256.c                           |  97 ++----------
 20 files changed, 239 insertions(+), 193 deletions(-)
Signature · 1 line
2.39.5