mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
Merge branch 'fix/fix_esp_tee_failing_deterministic_ecdsa_sign' into 'master'
fix(esp_tee): release SHA held by HMAC after crypto peripheral reset See merge request espressif/esp-idf!50286
This commit is contained in:
@@ -29,8 +29,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "esp_tee.h"
|
#include "esp_tee.h"
|
||||||
|
#include "esp_attr.h"
|
||||||
|
|
||||||
void esp_tee_soc_reset_crypto_peripherals(void)
|
void IRAM_ATTR esp_tee_soc_reset_crypto_peripherals(void)
|
||||||
{
|
{
|
||||||
/* Reset the crypto peripherals to a clean state and leave their clocks disabled; drivers re-enable on demand */
|
/* Reset the crypto peripherals to a clean state and leave their clocks disabled; drivers re-enable on demand */
|
||||||
#if SOC_AES_SUPPORTED
|
#if SOC_AES_SUPPORTED
|
||||||
@@ -61,6 +62,7 @@ void esp_tee_soc_reset_crypto_peripherals(void)
|
|||||||
#if SOC_HMAC_SUPPORTED
|
#if SOC_HMAC_SUPPORTED
|
||||||
hmac_ll_enable_bus_clock(true);
|
hmac_ll_enable_bus_clock(true);
|
||||||
hmac_ll_reset_register();
|
hmac_ll_reset_register();
|
||||||
|
hmac_ll_clean();
|
||||||
hmac_ll_enable_bus_clock(false);
|
hmac_ll_enable_bus_clock(false);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user