crypto: sha256 - Move lib/sha256.c to lib/crypto
authorHans de Goede <hdegoede@redhat.com>
Sat, 17 Aug 2019 14:24:31 +0000 (16:24 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:35 +0000 (14:57 +1000)
commitad767ee858b38af634c957a792cb001d54a7b981
treeabc728ea04dca8c72d9529fbde034496d7aa5a28
parent1a01333d313447f0cdfcc2882ea3afe387a24be0
crypto: sha256 - Move lib/sha256.c to lib/crypto

Generic crypto implementations belong under lib/crypto not directly in
lib, likewise the header should be in include/crypto, not include/linux.

Note that the code in lib/crypto/sha256.c is not yet available for
generic use after this commit, it is still only used by the s390 and x86
purgatory code. Making it suitable for generic use is done in further
patches in this series.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/purgatory/Makefile
arch/s390/purgatory/purgatory.c
arch/x86/purgatory/Makefile
arch/x86/purgatory/purgatory.c
include/crypto/sha256.h [moved from include/linux/sha256.h with 94% similarity]
lib/crypto/sha256.c [moved from lib/sha256.c with 99% similarity]