linuxkm/module_hooks.c: don't define FIPS_NO_WRAPPERS;

linuxkm/lkcapi_ecdh_glue.c: in km_ecdh_compute_shared_secret(), wrap wc_ecc_shared_secret() in PRIVATE_KEY_UNLOCK...PRIVATE_KEY_LOCK.
This commit is contained in:
Daniel Pouzzner
2025-04-16 18:29:43 -05:00
parent bfab68f40c
commit 78a9cd7c58
2 changed files with 2 additions and 2 deletions

View File

@@ -523,8 +523,10 @@ static int km_ecdh_compute_shared_secret(struct kpp_request *req)
goto ecdh_shared_secret_end;
}
PRIVATE_KEY_UNLOCK();
err = wc_ecc_shared_secret(ctx->key, ecc_pub, shared_secret,
&shared_secret_len);
PRIVATE_KEY_LOCK();
if (unlikely(err || shared_secret_len != ctx->curve_len)) {
#ifdef WOLFKM_DEBUG_ECDH

View File

@@ -27,8 +27,6 @@
#endif
#endif
#define FIPS_NO_WRAPPERS
#define WOLFSSL_LINUXKM_NEED_LINUX_CURRENT
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>