From: Ryan Prinz <rc4d5a@protonmail.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Giovanni Cabiddu <giovanni.cabiddu@intel.com>,
Zhiqi Song <songzhiqi1@huawei.com>,
Longfang Liu <liulongfang@huawei.com>,
"David S . Miller" <davem@davemloft.net>,
qat-linux@intel.com, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/3] crypto: share and use the DH public key range check
Date: Fri, 04 Dec 2026 21:25:45 +0000 [thread overview]
Message-ID: <20261204212522.667547-1-rc4d5a@protonmail.com> (raw)
This regroups three previously-independent patches into one series,
per Herbert's request on the QAT thread so Sashiko (and everyone
else) can review them together: patches 2 and 3 both depend on the
helper patch 1 adds.
1/3 adds a shared SP800-56A rev3 5.6.2.3.2 range check,
crypto_dh_pubkey_in_range(), in crypto/dh_helper.c, instead of
QAT and HPRE each carrying a byte-for-byte identical private
copy.
2/3 is the QAT missing-DH-validation fix (previously posted alone as
v1-v3), now calling the shared helper from 1/3 instead of its own
copy of the comparison.
3/3 is the HPRE missing-DH/ECDH-validation fix (previously posted
alone as v1-v4), with its DH half now calling the shared helper
from 1/3 the same way; the ECDH half (ecc_is_pubkey_valid_partial())
is unchanged.
No functional changes from the last individually-posted revision of
any of the three patches; this is just resending as a linked series.
Ryan Prinz (3):
crypto: dh - add shared DH public key range check
crypto: qat - fix missing DH public key validation
crypto: hisilicon/hpre - fix missing DH/ECDH public key validation
crypto/dh_helper.c | 32 ++++++++
drivers/crypto/hisilicon/hpre/hpre_crypto.c | 124 +++++++++++++++++++
drivers/crypto/intel/qat/qat_common/qat_asym_algs.c | 43 +++++++
include/crypto/dh.h | 22 ++++
4 files changed, 221 insertions(+)
next reply other threads:[~2026-12-04 21:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 21:25 Ryan Prinz [this message]
2026-12-04 21:26 ` [PATCH 1/3] crypto: dh - add shared " Ryan Prinz
2026-12-04 21:26 ` [PATCH v3 2/3] crypto: qat - fix missing DH public key validation Ryan Prinz
2026-12-04 21:26 ` [PATCH v4 3/3] crypto: hisilicon/hpre - fix missing DH/ECDH " Ryan Prinz
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=20261204212522.667547-1-rc4d5a@protonmail.com \
--to=rc4d5a@protonmail.com \
--cc=davem@davemloft.net \
--cc=giovanni.cabiddu@intel.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liulongfang@huawei.com \
--cc=qat-linux@intel.com \
--cc=songzhiqi1@huawei.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®