Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/tpm2_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -3428,6 +3428,9 @@ int wolfTPM2_ImportPublicKeyBuffer(WOLFTPM2_DEV* dev, int keyType,
}
#endif

(void)derBuf;
(void)derSz;

return rc;
}

Expand Down Expand Up @@ -3545,6 +3548,8 @@ int wolfTPM2_ImportPrivateKeyBuffer(WOLFTPM2_DEV* dev,
#endif

TPM2_ForceZero(&sens, sizeof(sens));
(void)derBuf;
(void)derSz;

return rc;
}
Expand Down
7 changes: 7 additions & 0 deletions wolftpm/tpm2_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,13 @@ typedef int64_t INT64;
#define XSLEEP_MS(ms) k_msleep(ms)
#elif defined(WOLFSSL_ESPIDF)
#define XSLEEP_MS(ms) vTaskDelay(pdMS_TO_TICKS(ms))
#elif defined(__linux__) || defined(__ARM_EABI__)
#include <unistd.h>
static inline void XSLEEP_MS(unsigned int ms) {
if (ms >= 1000)
sleep(ms / 1000);
usleep((ms % 1000) * 1000);
}
#elif defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
#include <time.h>
static inline void XSLEEP_MS(unsigned int ms) {
Expand Down
Loading