diff --git a/src/tpm2_wrap.c b/src/tpm2_wrap.c index e1a52190..d9028da0 100644 --- a/src/tpm2_wrap.c +++ b/src/tpm2_wrap.c @@ -3211,7 +3211,11 @@ int wolfTPM2_EccKey_WolfToTpm_ex(WOLFTPM2_DEV* dev, WOLFTPM2_KEY* parentKey, rc = MEMORY_E; } if (rc == 0) { + #ifdef ECC_TIMING_RESISTANT + rc = wc_ecc_make_pub_ex(wolfKey, point, wolfKey->rng); + #else rc = wc_ecc_make_pub(wolfKey, point); + #endif if (rc == 0) rc = wc_export_int(point->x, qx, &qxSz, keySz, WC_TYPE_UNSIGNED_BIN);