mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
esp32s2 ds: Fix invalidating Digital Signature key from HMAC peripheral if assertions are disabled
This commit is contained in:
@ -161,8 +161,9 @@ esp_err_t esp_ds_finish_sign(void *signature, esp_ds_context_t *esp_ds_ctx)
|
|||||||
|
|
||||||
free(esp_ds_ctx);
|
free(esp_ds_ctx);
|
||||||
|
|
||||||
// should not fail if called with correct purpose
|
int res = ets_hmac_invalidate_downstream(ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_DIGITAL_SIGNATURE);
|
||||||
assert(ets_hmac_invalidate_downstream(ETS_EFUSE_KEY_PURPOSE_HMAC_DOWN_DIGITAL_SIGNATURE) == ETS_OK);
|
assert(res == ETS_OK); // should not fail if called with correct purpose
|
||||||
|
(void)res;
|
||||||
|
|
||||||
ds_disable_release();
|
ds_disable_release();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user