feat: adds DS Sign capabilities for ESP32S2

This commit is contained in:
Ashish Sharma
2026-02-06 16:09:41 +08:00
parent b1f14d19d0
commit 7418a91d3e
11 changed files with 64 additions and 35 deletions
+2 -1
View File
@@ -1443,7 +1443,8 @@ static esp_err_t esp_mbedtls_init_pk_ctx_for_ds(const void *pki)
int ret = mbedtls_pk_wrap_psa(pki_l->pk_key, ds_key_id);
if (ret != 0) {
ESP_LOGE(TAG, "mbedtls_pk_wrap_psa failed with -0x%04X", -ret);
return ret;
psa_destroy_key(ds_key_id);
return ESP_FAIL;
}
ESP_LOGD(TAG, "DS peripheral pk context initialized.");
return ESP_OK;