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)
commitd2825fa9365d0101571ed16534b16b7c8d261ab3
treec7da9fe51d0ba864e348d8a99843965a149224c8
parent3123109284176b1532874591f7c81f3837bbdc17
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]