Re: [PATCH 32/33] ksmbd: Use AES-GCM and AES-CCM libraries

From: Namjae Jeon

Date: Tue Jul 07 2026 - 06:51:27 EST


On Tue, Jul 7, 2026 at 2:44 PM Eric Biggers <ebiggers@xxxxxxxxxx> wrote:
>
> Now that there are library APIs for AES-GCM and AES-CCM, use them
> instead of "gcm(aes)" and "ccm(aes)" crypto_aeads. This significantly
> simplifies the code, especially since the pool of crypto_aead objects
> and all the scatterlist building code go away.
>
> Move the encryption and decryption code directly into smb3_decrypt_req()
> and smb3_encrypt_resp() to take advantage of their respective data
> layouts.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
Acked-by: Namjae Jeon <linkinjeon@xxxxxxxxxx>
Thanks!