mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
The DS/ECDSA cleanup added in8cb64703is intended for volatile PSA keys created internally by the DS and ECDSA peripheral paths. Ensure that during the cleanup, PSA_KEY_LIFETIME_IS_VOLATILE() is checked to avoid destroying keys the user has added persistently to PSA. This resolves an issue in the next commit (adding support for clientkey_psa_id) where a user passes a PSA key id that is then silently destroyed if CONFIG_ESP_TLS_USE_DS_PERIPHERAL or CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN happen to be defined. Signed-off-by: Mike Szczys <michael.szczys@canonical.com> (cherry picked from commitda51d69013) (cherry picked from commitf68cfbf8d4)