From: Laveesh Bansal <laveeshb@laveeshbansal.com>
To: Arun Iyengar <aiyengar1990@gmail.com>
Cc: Lukas Wunner <lukas@wunner.de>, Ignat Korchagin <ignat@linux.win>,
Stefan Berger <stefanb@linux.ibm.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Jarkko Sakkinen <jarkko@kernel.org>,
Erwin Pawliczek <pawliczekerwin@gmail.com>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] crypto: ecc - Keep the random initial Z below 2^521 on P-521
Date: Sun, 22 Nov 2026 19:36:51 -0800 [thread overview]
Message-ID: <20261123033651.91031-1-laveeshb@laveeshbansal.com> (raw)
In-Reply-To: <20261114-ecc-p521-small-scalars-v1-1-7b114f076b33@gmail.com>
On Sat, 14 Nov 2026, Arun Iyengar wrote:
> With a 576-bit Z, every P-521 ecc_make_pub_key()
> call returns -EAGAIN.
Hi Arun,
I tested this on an arm64 QEMU guest (7.4.0-rc1, Herbert's tree at
8ba9044ff0bf, KASAN, lockdep and DEBUG_LIST). A module calls
ecc_make_pub_key() on P-521 for 76 keys, three times each, and compares
the result with OpenSSL. Without the patch all 228 calls return -EAGAIN.
With it none do, and the 34 keys from 2^522 - 2n up match OpenSSL. The
42 smaller ones are still wrong until patch 2. KASAN and lockdep stay
quiet.
Tested-by: Laveesh Bansal <laveeshb@laveeshbansal.com>
Thanks,
Laveesh
next prev parent reply other threads:[~2026-11-23 3:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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-23 3:36 ` Laveesh Bansal [this message]
2026-11-14 8:44 ` [PATCH 2/2] crypto: ecc - Fix P-521 scalar multiplication for small scalars Arun Iyengar via B4 Relay
2026-11-23 3:37 ` Laveesh Bansal
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=20261123033651.91031-1-laveeshb@laveeshbansal.com \
--to=laveeshb@laveeshbansal.com \
--cc=aiyengar1990@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=ignat@linux.win \
--cc=jarkko@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=pawliczekerwin@gmail.com \
--cc=stefanb@linux.ibm.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®