5555 #define WOLFSSL_SHA3
5656#endif
5757
58+ #define WOLFTPM_ADV_IO
59+ #define WOLFTPM_EXAMPLE_HAL
60+ #define WOLFTPM_INCLUDE_IO_FILE
61+
5862/*
5963 * ONE of these Espressif chip families will be detected from sdkconfig:
6064 *
146150#else
147151 #define HAVE_ECC
148152 #define HAVE_CURVE25519
149- #define CURVE25519_SMALL
153+ /* #define CURVE25519_SMALL */
150154#endif
151155
152156#define HAVE_ED25519
@@ -643,7 +647,7 @@ Turn on timer debugging (used when CPU cycles not available)
643647
644648/* Choices are I2C or SPI*/
645649/* WOLFTPM_I2C or not; when not defined, assumes SPI. */
646- #define WOLFTPM_I2C
650+ /* #define WOLFTPM_I2C */
647651
648652/* Enable the wolfTPM example HAL in tpm_io.h */
649653#define WOLFTPM_EXAMPLE_HAL
@@ -652,8 +656,10 @@ Turn on timer debugging (used when CPU cycles not available)
652656#define WOLFTPM_INCLUDE_IO_FILE
653657
654658/* The default TPM_TIMEOUT_TRIES is 1,000,000 but can be overridden.
655- * A value of 10000 is much more appropriate for the ESP32: */
656- #define TPM_TIMEOUT_TRIES 10000
659+ * A value of 10000 is much more appropriate for the ESP32.
660+ * The extra long delay is for TPM2_CreatePrimary: Endorsement operations,
661+ * which can take up to 60 seconds */
662+ #define TPM_TIMEOUT_TRIES 300000
657663
658664/* If not defined here, TPM_I2C_TRIES is set to a default value of 10 */
659665/* #define TPM_I2C_TRIES 10 */
0 commit comments