From dc7843b954bf9bf289057c69d59af1cd8607752e Mon Sep 17 00:00:00 2001 From: Ashish Sharma Date: Mon, 23 Mar 2026 14:30:49 +0800 Subject: [PATCH] fix(esp_hal_security): fixes failing hmac_hal_configure with efuse_key for p4 rev < 3 Closes https://github.com/espressif/esp-idf/issues/18370 --- components/esp_hal_security/hmac_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hal_security/hmac_hal.c b/components/esp_hal_security/hmac_hal.c index 4bf2426b18..623f58555c 100644 --- a/components/esp_hal_security/hmac_hal.c +++ b/components/esp_hal_security/hmac_hal.c @@ -38,7 +38,7 @@ uint32_t hmac_hal_configure(hmac_hal_output_t config, uint32_t key_id) // No other HMAC output type is allowed when using key manager return 1; } - } else { + } else if (key_mgr_ll_is_supported()) { key_mgr_hal_set_key_usage(ESP_KEY_MGR_HMAC_KEY, ESP_KEY_MGR_USE_EFUSE_KEY); } #endif