summaryrefslogtreecommitdiff
path: root/fs/smb/server/Kconfig
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-09-06 20:20:03 -0700
committerSteve French <stfrench@microsoft.com>2025-09-07 21:45:34 -0500
commitc2b453ed23e1838ef9762b8a6861239dfaed6c1a (patch)
tree0bbd622b8c6fa344fb3575912b15588314ad7b0c /fs/smb/server/Kconfig
parent12796098184b5d0afa54bead8f3e96f58df38f51 (diff)
downloadlinux-c2b453ed23e1838ef9762b8a6861239dfaed6c1a.tar.gz
linux-c2b453ed23e1838ef9762b8a6861239dfaed6c1a.tar.bz2
linux-c2b453ed23e1838ef9762b8a6861239dfaed6c1a.zip
smb: Use arc4 library instead of duplicate arc4 code
fs/smb/common/cifs_arc4.c has an implementation of ARC4, but a copy of this same code is also present in lib/crypto/arc4.c to serve the other users of this legacy algorithm in the kernel. Remove the duplicate implementation in fs/smb/, which seems to have been added because of a misunderstanding, and just use the lib/crypto/ one. Signed-off-by: Eric Biggers <ebiggers@kernel.org> Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/Kconfig')
-rw-r--r--fs/smb/server/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/server/Kconfig b/fs/smb/server/Kconfig
index 4a23a5e7e8fe..098cac98d31e 100644
--- a/fs/smb/server/Kconfig
+++ b/fs/smb/server/Kconfig
@@ -10,6 +10,7 @@ config SMB_SERVER
select CRYPTO_MD5
select CRYPTO_HMAC
select CRYPTO_ECB
+ select CRYPTO_LIB_ARC4
select CRYPTO_LIB_DES
select CRYPTO_LIB_SHA256
select CRYPTO_SHA256