]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: Drop 'allocate_crypto' arg from smb*_calc_signature()
authorEric Biggers <ebiggers@kernel.org>
Sat, 18 Apr 2026 22:13:11 +0000 (15:13 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 22 Apr 2026 14:56:16 +0000 (09:56 -0500)
commita83307f34e0bd9b0e595b1074dc8fbcc1b7f3172
tree5f3f29ecb8b567153a339510850a8c8014bb5546
parentdd1c537beca3b60a66783377fd03d60a5a409efe
smb: client: Drop 'allocate_crypto' arg from smb*_calc_signature()

Since the crypto library API is now being used instead of crypto_shash,
all structs for MAC computation are now just fixed-size structs
allocated on the stack; no dynamic allocations are ever required.
Besides being much more efficient, this also means that the
'allocate_crypto' argument to smb2_calc_signature() and
smb3_calc_signature() is no longer used.  Remove this unused argument.

Acked-by: Steve French <stfrench@microsoft.com>
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/smb2transport.c