Re: [PATCH v3 1/4] crypto: ti: Add support for AES-XTS in DTHEv2 driver

From: T Pratham

Date: Mon Sep 22 2025 - 08:41:41 EST


On 20/09/25 17:38, Herbert Xu wrote:
> On Wed, Sep 10, 2025 at 02:46:53PM +0530, T Pratham wrote:
>>
>> @@ -397,7 +446,29 @@ static struct skcipher_engine_alg cipher_algs[] = {
>> .cra_module = THIS_MODULE,
>> },
>> .op.do_one_request = dthe_aes_run,
>> - } /* CBC AES */
>> + }, /* CBC AES */
>> + {
>> + .base.init = dthe_cipher_init_tfm,
>> + .base.setkey = dthe_aes_xts_setkey,
>> + .base.encrypt = dthe_aes_encrypt,
>> + .base.decrypt = dthe_aes_decrypt,
>> + .base.min_keysize = AES_MIN_KEY_SIZE * 2,
>> + .base.max_keysize = AES_MAX_KEY_SIZE * 2,
>> + .base.ivsize = AES_IV_SIZE,
>> + .base.base = {
>> + .cra_name = "xts(aes)",
>> + .cra_driver_name = "xts-aes-dthev2",
>> + .cra_priority = 299,
>> + .cra_flags = CRYPTO_ALG_TYPE_SKCIPHER |
>> + CRYPTO_ALG_KERN_DRIVER_ONLY,
>
> I think it's missing CRYPTO_ALG_ASYNC.
>
> The existing algorithms seem to be missing this bit too so we
> should fix that first.
>
> Thanks,

Oh. Thanks for pointing this out.
This series had a few more issues with some of the algorithms, so I was about to send another revision anyway. I'll also correct this. And also fix the existing algorithms as well.

--
Regards
T Pratham <t-pratham@xxxxxx>