forked from wolfSSL/wolfssl
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:
@@ -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
|
||||
|
@@ -27,8 +27,6 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define FIPS_NO_WRAPPERS
|
||||
|
||||
#define WOLFSSL_LINUXKM_NEED_LINUX_CURRENT
|
||||
|
||||
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
|
||||
|
Reference in New Issue
Block a user