mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: ecc - Fix P-521 public key generation
@ 2026-11-14  8:44 Arun Iyengar via B4 Relay
  2026-11-14  8:44 ` [PATCH 1/2] crypto: ecc - Keep the random initial Z below 2^521 on P-521 Arun Iyengar via B4 Relay
  2026-11-14  8:44 ` [PATCH 2/2] crypto: ecc - Fix P-521 scalar multiplication for small scalars Arun Iyengar via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Arun Iyengar via B4 Relay @ 2026-11-14  8:44 UTC (permalink / raw)
  To: Lukas Wunner, Ignat Korchagin, Stefan Berger, Herbert Xu,
	David S. Miller, Jarkko Sakkinen
  Cc: linux-crypto, linux-kernel, Erwin Pawliczek, Arun Iyengar

Two P-521 fixes for crypto/ecc.c. Patch 1 keeps the random initial Z
from commit cd65eaf17841 below 2^521: with 576 bits, every P-521
ecc_make_pub_key() call fails with -EAGAIN. Patch 2 fixes the scalar
multiplication for scalars below about 2^259.5. No in-tree caller is
affected yet.

This series was developed with Claude (Anthropic) as a coding assistant:
it wrote the code and the commit messages. I reviewed it and tested it
as described in each patch.

---
Arun Iyengar (2):
      crypto: ecc - Keep the random initial Z below 2^521 on P-521
      crypto: ecc - Fix P-521 scalar multiplication for small scalars

 crypto/ecc.c | 31 +++++++++++++++++++------------
 1 file changed, 19 insertions(+), 12 deletions(-)
---
base-commit: 8ba9044ff0bf4a5789216496019fad614eeafd45
change-id: 20261114-ecc-p521-small-scalars-601dd880c8bb

Best regards,
--  
Arun Iyengar <aiyengar1990@gmail.com>



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

end of thread, other threads:[~2026-11-14  8:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-14  8:44 [PATCH 0/2] crypto: ecc - Fix P-521 public key generation Arun Iyengar via B4 Relay
2026-11-14  8:44 ` [PATCH 1/2] crypto: ecc - Keep the random initial Z below 2^521 on P-521 Arun Iyengar via B4 Relay
2026-11-14  8:44 ` [PATCH 2/2] crypto: ecc - Fix P-521 scalar multiplication for small scalars Arun Iyengar via B4 Relay

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®