crypto: sm3,sm4 - move into crypto directory
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 14 Mar 2022 03:11:01 +0000 (21:11 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Apr 2022 08:11:48 +0000 (16:11 +0800)
commit1b224261b57aa944eff92fc556344466dbdda55e
treec7da9fe51d0ba864e348d8a99843965a149224c8
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
crypto: sm3,sm4 - move into crypto directory

The lib/crypto libraries live in lib because they are used by various
drivers of the kernel. In contrast, the various helper functions in
crypto are there because they're used exclusively by the crypto API. The
SM3 and SM4 helper functions were erroniously moved into lib/crypto/
instead of crypto/, even though there are no in-kernel users outside of
the crypto API of those functions. This commit moves them into crypto/.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/crypto/Kconfig
crypto/Kconfig
crypto/Makefile
crypto/sm3.c [new file with mode: 0644]
crypto/sm4.c [new file with mode: 0644]
lib/crypto/Kconfig
lib/crypto/Makefile
lib/crypto/sm3.c [deleted file]
lib/crypto/sm4.c [deleted file]