Re: [PATCH 8/8] crypto: api - make the algorithm lookup priorize non-larvals

From: Herbert Xu
Date: Fri Oct 22 2021 - 07:52:03 EST


On Mon, Oct 11, 2021 at 10:34:11AM +0200, Nicolai Stange wrote:
>
> In order to keep a FIPS certification manageable in terms of scope,
> we're looking for a way to disable everything under drivers/crypto iff
> fips_enabled == 1. The most convenient way to achieve this downstream
> would be to add dummy entries to testmgr.c like so:

How about testing based on the flag CRYPTO_ALG_KERN_DRIVER_ONLY?
That flag is meant to correspond to pretty much exactly drivers/crypto.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt