Skip to content

crypto: add sha256() function

Eric Biggers alsa-devel linux-crypto linux-efi mptcp sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v14 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Added sparc patch to fix a build breakage caused by a static variable already named "sha256".
- Added Reviewed-by, Acked-by, and Tested-by tags.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: sparc - rename sha256 to sha256_algarch/sparc/crypto/sha256_glue.c+7 -70 replies
2/5crypto: lib/sha256 - add sha256() functioninclude/crypto/sha.h lib/crypto/sha256.c+11 -00 replies
3/5efi: use sha256() instead of open codingdrivers/firmware/efi/embedded-firmware.c+3 -60 replies
4/5mptcp: use sha256() instead of open codingnet/mptcp/crypto.c+3 -120 replies
5/5ASoC: cros_ec_codec: use sha256() instead of open codingsound/soc/codecs/cros_ec_codec.c+2 -250 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchArd BiesheuvelHans de GoedeMatthieu BaertsTzung-Bi Shih
1/5
2/5R-b T-b
3/5R-b T-b
4/5R-b A-b
5/5R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] crypto: add sha256() function

This series adds a function sha256() to the sha256 library so that users who want to compute a hash in one step can just call sha256() instead of sha256_init() + sha256_update() + sha256_final().

Patches 3-5 then convert some users to use it.

Changed v1 => v2:
- Added sparc patch to fix a build breakage caused by a static variable already named "sha256".
- Added Reviewed-by, Acked-by, and Tested-by tags.

Eric Biggers (5):
crypto: sparc - rename sha256 to sha256_alg
crypto: lib/sha256 - add sha256() function
efi: use sha256() instead of open coding
mptcp: use sha256() instead of open coding
ASoC: cros_ec_codec: use sha256() instead of open coding

 arch/sparc/crypto/sha256_glue.c          | 14 ++++++------
 drivers/firmware/efi/embedded-firmware.c |  9 +++-----
 include/crypto/sha.h                     |  1 +
 lib/crypto/sha256.c                      | 10 +++++++++
 net/mptcp/crypto.c                       | 15 +++----------
 sound/soc/codecs/cros_ec_codec.c         | 27 ++----------------------
 6 files changed, 26 insertions(+), 50 deletions(-)

base-commit: 57c8aa43b9f272c382c253573c82be5cb68fe22d

Signature · 1 line
2.27.0