diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index 061a42763..f8fa1cc29 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -8201,7 +8201,7 @@ void bench_sphincsKeySign(byte level, byte optim) #endif double current_time(int reset) { - portTickType tickCount; + TickType_t tickCount; (void) reset; diff --git a/wolfcrypt/src/port/Espressif/esp32_aes.c b/wolfcrypt/src/port/Espressif/esp32_aes.c index 0256685cb..abcfc8311 100644 --- a/wolfcrypt/src/port/Espressif/esp32_aes.c +++ b/wolfcrypt/src/port/Espressif/esp32_aes.c @@ -157,7 +157,7 @@ static void esp_aes_hw_Set_KeyMode(Aes *ctx, ESP32_AESPROCESS mode) static void esp_aes_bk(const byte* in, byte* out) { const word32 *inwords = (const word32 *)in; - word32 *outwords = (word32 *)out; + uint32_t *outwords = (uint32_t *)out; ESP_LOGV(TAG, "enter esp_aes_bk"); diff --git a/wolfcrypt/src/port/Espressif/esp32_sha.c b/wolfcrypt/src/port/Espressif/esp32_sha.c index 557bde8a9..3f6276500 100644 --- a/wolfcrypt/src/port/Espressif/esp32_sha.c +++ b/wolfcrypt/src/port/Espressif/esp32_sha.c @@ -551,7 +551,7 @@ int wc_esp_digest_state(WC_ESP32SHA* ctx, byte* hash) * DPORT_SEQUENCE_REG_READ(address + i * 4); */ esp_dport_access_read_buffer( - (word32*)(hash), /* the result will be found in hash upon exit */ + (uint32_t*)(hash), /* the result will be found in hash upon exit */ SHA_TEXT_BASE, /* there's a fixed reg addy for all SHA */ wc_esp_sha_digest_size(ctx->sha_type) / sizeof(word32) /* # 4-byte */ ); diff --git a/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h b/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h index d5ca08625..32d4107de 100644 --- a/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h +++ b/wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h @@ -27,6 +27,7 @@ #include "esp_idf_version.h" #include "esp_types.h" #include "esp_log.h" +#include "esp_random.h" #ifdef WOLFSSL_ESP32WROOM32_CRYPT_DEBUG #undef LOG_LOCAL_LEVEL diff --git a/wolfssl/wolfcrypt/wc_port.h b/wolfssl/wolfcrypt/wc_port.h index 79cac76e9..306692b64 100644 --- a/wolfssl/wolfcrypt/wc_port.h +++ b/wolfssl/wolfcrypt/wc_port.h @@ -202,7 +202,7 @@ #else /* MULTI_THREADED */ /* FREERTOS comes first to enable use of FreeRTOS Windows simulator only */ #if defined(FREERTOS) - typedef xSemaphoreHandle wolfSSL_Mutex; + typedef SemaphoreHandle_t wolfSSL_Mutex; #elif defined(FREERTOS_TCP) #include "FreeRTOS.h" #include "semphr.h"