From: T Pratham <t-pratham@ti.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>,
Kamlesh Gurudasani <kamlesh@ti.com>,
Manorit Chawdhry <m-chawdhry@ti.com>,
Vignesh Raghavendra <vigneshr@ti.com>,
Praneeth Bajjuri <praneeth@ti.com>,
Vishal Mahaveer <vishalm@ti.com>,
Kavitha Malarvizhi <k-malarvizhi@ti.com>,
<linux-crypto@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 1/4] crypto: ti: Add support for AES-XTS in DTHEv2 driver
Date: Mon, 22 Sep 2025 18:06:31 +0530 [thread overview]
Message-ID: <c0196ac6-af65-48c1-bc5a-ca430dff0a5a@ti.com> (raw)
In-Reply-To: <aM6ZNMR0CtDj01Iu@gondor.apana.org.au>
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@ti.com>
next prev parent reply other threads:[~2025-09-22 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 9:16 [PATCH v3 0/4] Add support for more AES modes in TI DTHEv2 T Pratham
2025-09-10 9:16 ` [PATCH v3 1/4] crypto: ti: Add support for AES-XTS in DTHEv2 driver T Pratham
2025-09-20 12:08 ` Herbert Xu
2025-09-22 12:36 ` T Pratham [this message]
2025-09-10 9:16 ` [PATCH v3 2/4] crypto: ti: Add support for AES-CTR " T Pratham
2025-09-10 9:16 ` [PATCH v3 3/4] crypto: ti: Add support for AES-GCM " T Pratham
2025-09-10 9:16 ` [PATCH v3 4/4] crypto: ti: Add support for AES-CCM " T Pratham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c0196ac6-af65-48c1-bc5a-ca430dff0a5a@ti.com \
--to=t-pratham@ti.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=k-malarvizhi@ti.com \
--cc=kamlesh@ti.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m-chawdhry@ti.com \
--cc=praneeth@ti.com \
--cc=vigneshr@ti.com \
--cc=vishalm@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®