diff --git a/src/libwolfboot.c b/src/libwolfboot.c index ff75f965..9f8b89ff 100644 --- a/src/libwolfboot.c +++ b/src/libwolfboot.c @@ -57,6 +57,14 @@ #define ENCRYPT_TMP_SECRET_OFFSET (WOLFBOOT_PARTITION_SIZE - (TRAILER_SKIP)) #endif +#if defined(WOLFBOOT_TPM) && !defined(__WOLFBOOT) + #define XMEMSET memset + #define XMEMCPY memcpy + #define XMEMCMP memcmp +#endif + + + #ifndef NULL # define NULL (void *)0 #endif