summaryrefslogtreecommitdiffstats
path: root/lib/crypto
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2021-07-20 11:46:40 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-07-30 10:58:30 +0800
commitc59de48e125c6d49a8abd165e388ca57bfe37b17 (patch)
tree695961559dbb5ca3a03360d580da98a9492564d3 /lib/crypto
parent2b31277af577b1b2da62c3ad7d3315b422869102 (diff)
downloadlinux-c59de48e125c6d49a8abd165e388ca57bfe37b17.tar.gz
linux-c59de48e125c6d49a8abd165e388ca57bfe37b17.tar.bz2
linux-c59de48e125c6d49a8abd165e388ca57bfe37b17.zip
crypto: arm64/sm4-ce - Make dependent on sm4 library instead of sm4-generic
SM4 library is abstracted from sm4-generic algorithm, sm4-ce can depend on the SM4 library instead of sm4-generic, and some functions in sm4-generic do not need to be exported. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/sm4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/sm4.c b/lib/crypto/sm4.c
index 5fbf8c741a2f..633b59fed9db 100644
--- a/lib/crypto/sm4.c
+++ b/lib/crypto/sm4.c
@@ -108,7 +108,7 @@ static inline u32 sm4_round(u32 x0, u32 x1, u32 x2, u32 x3, u32 rk)
* Returns 0 on success. The function fails only if an invalid key size (or
* pointer) is supplied.
*/
-int sm4_expandkey(struct crypto_sm4_ctx *ctx, const u8 *in_key,
+int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key,
unsigned int key_len)
{
u32 rk[4];