Re: [PATCH v2] crypto: qat - fix missing DH public key validation
From: Ryan Prinz
Date: Wed Dec 02 2026 - 03:24:27 EST
> Yes, I also think it makes sense to make the change centrally in the
> common file, rather than duplicating it in every driver that registers
> the "dh" algorithm.
Thanks Longfang,
Acknowledged. v2 has been superseded by v3
(Message-ID: 20261125231859.1857450-1-rc4d5a@xxxxxxxxxxxxxx), which
implements Giovanni's suggestion. The range check now lives
in crypto_dh_pubkey_in_range() in crypto/dh_helper.c, and now calls into it.
That shared helper is its own separate patch ("crypto: dh - add
shared DH public key range check", Message-ID:
20261125231825.1857253-1-rc4d5a@xxxxxxxxxxxxxx), which v3 depends on.
Thanks for reviewing!
Ryan