Merge pull request #8683 from douzzer/20250416-linuxkm-FIPS-wrappers

20250416-linuxkm-FIPS-wrappers
This commit is contained in:
philljj
2025-04-16 23:18:04 -05:00
committed by GitHub
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>