On Sat, May 11, 2024 at 01:23:53AM -0500, Joachim Vandersmissen wrote: > v4: FIPS_SIGNATURE_SELFTEST_RSA is no longer user-configurable and will > be set when the dependencies are fulfilled. > > ---8<--- > > In preparation of adding new ECDSA self-tests, the existing data is > moved to a separate file. A new configuration option is added to > control the compilation of the separate file. This configuration option > also enforces dependencies that were missing from the existing > CONFIG_FIPS_SIGNATURE_SELFTEST option. > The old fips_signature_selftest is no longer an init function, but now > a helper function called from fips_signature_selftest_rsa. > > Signed-off-by: Joachim Vandersmissen <git@xxxxxxxxx> > --- > crypto/asymmetric_keys/Kconfig | 7 + > crypto/asymmetric_keys/Makefile | 1 + > crypto/asymmetric_keys/selftest.c | 218 ++++---------------------- > crypto/asymmetric_keys/selftest.h | 16 ++ > crypto/asymmetric_keys/selftest_rsa.c | 172 ++++++++++++++++++++ > 5 files changed, 225 insertions(+), 189 deletions(-) > create mode 100644 crypto/asymmetric_keys/selftest.h > create mode 100644 crypto/asymmetric_keys/selftest_rsa.c Acked-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt