]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: Remove obsolete cmac(aes) allocation
authorEric Biggers <ebiggers@kernel.org>
Sat, 18 Apr 2026 22:13:09 +0000 (15:13 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 22 Apr 2026 14:56:10 +0000 (09:56 -0500)
commit4c1c07820a0e4d82076be254814ff84ce0aae212
tree725605a732600a279c3caed271dc1b490c8e5740
parent3a4580e71371dc5d323ac1fb4af80316838aca14
smb: client: Remove obsolete cmac(aes) allocation

Since the crypto library API is now being used instead of crypto_shash,
the "cmac(aes)" crypto_shash that is being allocated and stored in
'struct cifs_secmech' is no longer used.  Remove it.

That makes the kconfig selection of CRYPTO_CMAC and the module softdep
on "cmac" unnecessary.  So remove those too.

Finally, since this removes the last use of crypto_shash from the smb
client, also remove the remaining crypto_shash-related helper functions.

Note: cifs_unicode.c was relying on <linux/unaligned.h> being included
transitively via <crypto/internal/hash.h>.  Since the latter include is
removed, make cifs_unicode.c include <linux/unaligned.h> explicitly.

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/Kconfig
fs/smb/client/cifs_unicode.c
fs/smb/client/cifsencrypt.c
fs/smb/client/cifsfs.c
fs/smb/client/cifsglob.h
fs/smb/client/cifsproto.h
fs/smb/client/misc.c
fs/smb/client/sess.c
fs/smb/client/smb2proto.h
fs/smb/client/smb2transport.c