From 4ece466fca5c5608d2ca8b3e06fa9ea009c35130 Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Tue, 26 Sep 2023 08:32:23 -0700 Subject: [PATCH] ESP32 debug only: Mode REVERT to ESP32_SHA_SW --- wolfcrypt/src/port/Espressif/esp32_sha.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/port/Espressif/esp32_sha.c b/wolfcrypt/src/port/Espressif/esp32_sha.c index e159a1ad04..fc0bc868f3 100644 --- a/wolfcrypt/src/port/Espressif/esp32_sha.c +++ b/wolfcrypt/src/port/Espressif/esp32_sha.c @@ -757,7 +757,9 @@ int esp_sha_try_hw_lock(WC_ESP32SHA* ctx) else { /* We should have otherwise anticipated this; how did we get here? ** This code should rarely, ideally never be reached. */ + #if defined(DEBUG_WOLFSSL) ESP_LOGI(TAG, "\nHardware in use; Mode REVERT to ESP32_SHA_SW\n"); + #endif ctx->mode = ESP32_SHA_SW; return 0; /* success, but revert to SW */ }