From: Stephan Mueller <smueller@chronox.de>
To: Mahmoud Adam <mngyadam@amazon.com>,
Herbert Xu <herbert@gondor.apana.org.au>
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] crypto: rsa - allow only odd e and restrict value in FIPS mode
Date: Wed, 14 Jun 2023 13:59:23 +0200 [thread overview]
Message-ID: <4502349.tsrQG4AIub@tauon.chronox.de> (raw)
In-Reply-To: <ZImNfECCS+22oF/D@gondor.apana.org.au>
Am Mittwoch, 14. Juni 2023, 11:50:52 CEST schrieb Herbert Xu:
Hi Herbert,
> On Tue, Jun 13, 2023 at 04:17:31PM +0000, Mahmoud Adam wrote:
> > check if rsa public exponent is odd and check its value is between
> > 2^16 < e < 2^256.
> >
> > FIPS 186-5 DSS (page 35)[1] specify that:
> >
> > 1. The public exponent e shall be selected with the following constraints:
> > (a) The public verification exponent e shall be selected prior to
> > generating the primes, p and q, and the private signature exponent
> > d.
> >
> > (b) The exponent e shall be an odd positive integer such that:
> > 2^16 < e < 2^256.
> >
> > [1] https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf
> >
> > Signed-off-by: Mahmoud Adam <mngyadam@amazon.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Ciao
Stephan
next prev parent reply other threads:[~2023-06-14 12:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-13 16:17 [PATCH] crypto: rsa - allow only odd e and restrict value in FIPS mode Mahmoud Adam
2023-06-14 9:50 ` Herbert Xu
2023-06-14 11:59 ` Stephan Mueller [this message]
2023-06-23 8:22 ` Herbert Xu
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=4502349.tsrQG4AIub@tauon.chronox.de \
--to=smueller@chronox.de \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mngyadam@amazon.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