From: Randy Dunlap <rdunlap@infradead.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: linux-kernel@vger.kernel.org, Dexuan Cui <decui@microsoft.com>,
linux-crypto@vger.kernel.org, Eric Biggers <ebiggers@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org
Subject: Re: [PATCH] Documentation: crypto: add info about "fips=" boot option
Date: Mon, 29 Mar 2021 22:00:45 -0700 [thread overview]
Message-ID: <fb76dd26-eea8-af06-6968-25719a6dba6b@infradead.org> (raw)
In-Reply-To: <20210330043747.GA28166@gondor.apana.org.au>
On 3/29/21 9:37 PM, Herbert Xu wrote:
> On Mon, Mar 29, 2021 at 09:00:01PM -0700, Randy Dunlap wrote:
>>
>> + If fips_enabled = 1, some crypto tests are skipped.
>
> I don't think any tests are skipped. It does however disable
> many algorithms by essentially failing them at the testing stage.
That statement was based on crypto/testmgr.c (in 4 places):
if (fips_enabled && template[i].fips_skip)
continue;
and
if (fips_enabled && vec->fips_skip)
return 0;
and
if (fips_enabled && !alg_test_descs[i].fips_allowed)
goto non_fips_alg;
and
if (fips_enabled && ((i >= 0 && !alg_test_descs[i].fips_allowed) ||
(j >= 0 && !alg_test_descs[j].fips_allowed)))
goto non_fips_alg;
so it appears (at least to me) that there are some methods (infrastructure)
for tests to be skipped, but maybe none are actually using that possiblilty.
In any case, I don't mind dropping that part of the documentation.
thanks.
--
~Randy
next prev parent reply other threads:[~2021-03-30 5:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 4:00 [PATCH] Documentation: crypto: add info about "fips=" boot option Randy Dunlap
2021-03-30 4:37 ` Herbert Xu
2021-03-30 5:00 ` Randy Dunlap [this message]
2021-03-30 5:02 ` 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=fb76dd26-eea8-af06-6968-25719a6dba6b@infradead.org \
--to=rdunlap@infradead.org \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=decui@microsoft.com \
--cc=ebiggers@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).