linuxkm/lkcapi_glue.c: fix aes-cfb wrappers, and add

WOLFSSL_DEBUG_TRACE_ERROR_CODES support for EINVAL/ENOMEM/EBADMSG;

configure.ac: remove ENABLED_EXPERIMENTAL requirement for
  --enable-linuxkm-lkcapi-register=cfb(aes);

linuxkm/module_hooks.c: omit "skipping full wolfcrypt_test" message if
  wc_RunAllCast_fips() was run.
This commit is contained in:
Daniel Pouzzner
2025-03-12 17:08:04 -05:00
parent 517f4bd561
commit c80a050c29
3 changed files with 49 additions and 30 deletions

View File

@@ -270,7 +270,7 @@ static int wolfssl_init(void)
}
#endif
#ifdef HAVE_FIPS
#if defined(HAVE_FIPS) && FIPS_VERSION3_GT(5,2,0)
ret = wc_RunAllCast_fips();
if (ret != 0) {
pr_err("wc_RunAllCast_fips() failed with return value %d\n", ret);
@@ -302,7 +302,7 @@ static int wolfssl_init(void)
""
#endif
);
#endif /* HAVE_FIPS */
#endif /* HAVE_FIPS && FIPS_VERSION3_GT(5,2,0) */
#ifndef NO_CRYPT_TEST
ret = wolfcrypt_test(NULL);
@@ -314,9 +314,11 @@ static int wolfssl_init(void)
}
pr_info("wolfCrypt self-test passed.\n");
#else
#if !defined(HAVE_FIPS) || FIPS_VERSION3_LE(5,2,0)
pr_info("skipping full wolfcrypt_test() "
"(configure with --enable-crypttests to enable).\n");
#endif
#endif
#ifdef LINUXKM_LKCAPI_REGISTER
ret = linuxkm_lkcapi_register();