[PATCH 12/15] ksmbd: Use AES-CMAC library for SMB3 signature calculation
Namjae Jeon
linkinjeon at kernel.org
Wed Feb 18 17:49:44 PST 2026
On Thu, Feb 19, 2026 at 6:42 AM Eric Biggers <ebiggers at kernel.org> wrote:
>
> Now that AES-CMAC has a library API, convert ksmbd_sign_smb3_pdu() to
> use it instead of a "cmac(aes)" crypto_shash.
>
> The result is simpler and faster code. With the library there's no need
> to dynamically allocate memory, no need to handle errors, and the
> AES-CMAC code is accessed directly without inefficient indirect calls
> and other unnecessary API overhead.
>
> Signed-off-by: Eric Biggers <ebiggers at kernel.org>
Acked-by: Namjae Jeon <linkinjeon at kernel.org>
Thanks!
More information about the linux-arm-kernel
mailing list