]> Gentwo Git Trees - linux/.git/commit
smb: Use arc4 library instead of duplicate arc4 code
authorEric Biggers <ebiggers@kernel.org>
Sun, 7 Sep 2025 03:20:03 +0000 (20:20 -0700)
committerSteve French <stfrench@microsoft.com>
Tue, 30 Sep 2025 02:21:23 +0000 (21:21 -0500)
commit8e979aab34d766986f6d14f50cebf5f5dd87ab8e
tree594d9196a0f15013a2c2c77bdcb6ef00ea193358
parent02696ac0906540715dd4a0bb86b1117a1d00da4e
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>
fs/smb/client/Kconfig
fs/smb/client/cifsencrypt.c
fs/smb/common/Makefile
fs/smb/common/arc4.h [deleted file]
fs/smb/common/cifs_arc4.c [deleted file]
fs/smb/server/Kconfig
fs/smb/server/auth.c