Skip to content

Commit 4906974

Browse files
authored
Merge pull request #8683 from douzzer/20250416-linuxkm-FIPS-wrappers
20250416-linuxkm-FIPS-wrappers
2 parents 404fafd + 78a9cd7 commit 4906974

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

linuxkm/lkcapi_ecdh_glue.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,10 @@ static int km_ecdh_compute_shared_secret(struct kpp_request *req)
523523
goto ecdh_shared_secret_end;
524524
}
525525

526+
PRIVATE_KEY_UNLOCK();
526527
err = wc_ecc_shared_secret(ctx->key, ecc_pub, shared_secret,
527528
&shared_secret_len);
529+
PRIVATE_KEY_LOCK();
528530

529531
if (unlikely(err || shared_secret_len != ctx->curve_len)) {
530532
#ifdef WOLFKM_DEBUG_ECDH

linuxkm/module_hooks.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#endif
2828
#endif
2929

30-
#define FIPS_NO_WRAPPERS
31-
3230
#define WOLFSSL_LINUXKM_NEED_LINUX_CURRENT
3331

3432
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>

0 commit comments

Comments
 (0)