mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] crypto: share and use the DH public key range check
@ 2026-12-04 21:25 Ryan Prinz
  2026-12-04 21:26 ` [PATCH 1/3] crypto: dh - add shared " Ryan Prinz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ryan Prinz @ 2026-12-04 21:25 UTC (permalink / raw)
  To: Herbert Xu
  Cc: Giovanni Cabiddu, Zhiqi Song, Longfang Liu, David S . Miller,
	qat-linux, linux-crypto, linux-kernel

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(+)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-12-04 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04 21:25 [PATCH 0/3] crypto: share and use the DH public key range check Ryan Prinz
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

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®