Skip to content

crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

Hans de Goede linux-arm-kernel linux-crypto linux-efi linux-s390 lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: arm - Rename functions to avoid conflict with crypto/sha256.harch/arm/crypto/sha256_glue.c arch/arm/crypto/sha256_neon_glue.c+16 -160 replies
2/9crypto: arm64 - Rename functions to avoid conflict with crypto/sha256.harch/arm64/crypto/sha256-glue.c+12 -120 replies
3/9crypto: s390 - Rename functions to avoid conflict with crypto/sha256.harch/s390/crypto/sha256_s390.c+4 -40 replies
4/9crypto: x86 - Rename functions to avoid conflict with crypto/sha256.harch/x86/crypto/sha256_ssse3_glue.c+6 -60 replies
5/9crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.hdrivers/crypto/ccree/cc_hash.c+77 -763 replies
6/9crypto: chelsio - Rename arrays to avoid conflict with crypto/sha256.hdrivers/crypto/chelsio/chcr_algo.h+10 -100 replies
7/9crypto: n2 - Rename arrays to avoid conflict with crypto/sha256.hdrivers/crypto/n2_core.c+8 -80 replies
8/9crypto: sha256 - Merge crypto/sha256.h into crypto/sha.harch/s390/purgatory/purgatory.c arch/x86/purgatory/purgatory.c crypto/sha256_generic.c +3 more+24 -380 replies
9/9crypto: sha256 - Remove sha256/224_init code duplicationinclude/crypto/sha.h include/crypto/sha256_base.h lib/crypto/sha256.c+30 -560 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGilad Ben-YossefArd Biesheuvel
SeriesA-b
1/9
2/9
3/9
4/9
5/9A-b
6/9
7/9
8/9
9/9

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/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

Hi All,

As promised here is a follow-up series to my earlier sha256 series.

Note I have only compiled and tested this series on x86_64 !!

All changes to architecture specific code on other archs have not even been tested to compile! With that said most of these changes were done using my editors search - replace function so things should be fine... (and FWIW I did do a Kconfig hack to compile test the ccree change).

The first patch in this series rename various file local functions / arrays to avoid conflicts with the new include/crypto/sha256.h, followed by a patch merging include/crypto/sha256.h into include/crypto/sha.h.

The last patch makes use of this merging to remove a bit more code duplication, making sha256_generic use sha256_init and sha224_init from lib/crypto/sha256.c. An added advantage of this, is that this gives these 2 functions coverage by the crypto selftests.

Regards,

Hans