From: Stephan Mueller <smueller@chronox.de>
To: Eric Biggers <ebiggers@kernel.org>,
Herbert Xu <herbert@gondor.apana.org.au>
Cc: Robert Elliott <elliott@hpe.com>,
tim.c.chen@linux.intel.com, davem@davemloft.net,
linux-crypto@vger.kernel.org, toshi.kani@hpe.com,
rwright@hpe.com
Subject: Re: [PATCH] crypto: testmgr - don't generate WARN for missing modules
Date: Tue, 16 Aug 2022 07:09:44 +0200 [thread overview]
Message-ID: <2802022.gAprrWTQMp@tauon.chronox.de> (raw)
In-Reply-To: <YvsEN+6k4lTvXY7I@gondor.apana.org.au>
Am Dienstag, 16. August 2022, 04:43:03 CEST schrieb Herbert Xu:
Hi Herbert,
> On Mon, Aug 15, 2022 at 02:30:13PM -0700, Eric Biggers wrote:
> > Note that this is only a problem because tcrypt calls alg_test() directly.
> > The normal way that alg_test() gets called is for the registration-time
> > self-test. It's not clear to me why tcrypt calls alg_test() directly; the
> > registration-time test should be enough. Herbert, do you know?
>
> The tcrypt code predates testmgr. So at the beginning we only had
> the enumerative testing. Registration-time testing was added later.
>
> We could remove the enumerative testing, but I think the FIPS people
> have grown rather attached to it because it ticks some sort of a box
> at boot-time.
>
> Stephane, would it be a problem for FIPS if we simply got rid of the
> enumerative testing in tcrypt and instead relied on registration-time
> testing?
The tcrypt code has only one purpose for FIPS: to allocate all crypto
algorithms at boot time and thus to trigger the self test during boot time.
That was a requirement until some time ago. These requirements were relaxed a
bit such that a self test before first use is permitted, i.e. the approach we
have in testmgr.c.
Therefore, presently we do not need this boot-time allocation of an algorithm
via tcrypt which means that from a FIPS perspective tcrypt is no longer
required.
>
> Cheers,
Ciao
Stephan
next prev parent reply other threads:[~2022-08-16 7:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-13 23:14 [PATCH] crypto: testmgr - don't generate WARN for missing modules Robert Elliott
2022-08-15 21:30 ` Eric Biggers
2022-08-16 2:43 ` Herbert Xu
2022-08-16 5:09 ` Stephan Mueller [this message]
2022-08-16 5:49 ` Herbert Xu
2022-08-19 11:05 ` Herbert Xu
2022-08-19 23:15 ` Eric Biggers
2022-08-20 0:15 ` Elliott, Robert (Servers)
2022-08-20 0:40 ` Eric Biggers
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=2802022.gAprrWTQMp@tauon.chronox.de \
--to=smueller@chronox.de \
--cc=davem@davemloft.net \
--cc=ebiggers@kernel.org \
--cc=elliott@hpe.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=rwright@hpe.com \
--cc=tim.c.chen@linux.intel.com \
--cc=toshi.kani@hpe.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