Files
esp-idf/docs/zh_CN/migration-guides/release-6.x/6.0/security.rst
T
2025-08-20 14:20:37 +05:30

33 lines
1.2 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
安全性
=======
:link_to_translation:`en:[English]`
Mbed TLS
--------
**ESP-IDF v6.0** 开始,一些已废弃的 mbedtls 头文件已被移除,例如 ``esp32/aes.h````esp32/sha.h````esp32s2/aes.h````esp32s2/sha.h````esp32s2/gcm.h``。请改为分别包含 ``aes/esp_aes.h````sha/sha_core.h````aes/esp_aes_gcm.h``
.. only:: SOC_SHA_SUPPORTED
SHA 模块头文件 ``sha/sha_dma.h````sha/sha_block.h`` 也已废弃并被移除,请改为包含 ``sha/sha_core.h``
**已移除的废弃 API**
以下废弃函数已被移除:
- :cpp:func:`esp_aes_encrypt` 请使用 :cpp:func:`esp_internal_aes_encrypt` 代替。
- :cpp:func:`esp_aes_decrypt` 请使用 :cpp:func:`esp_internal_aes_decrypt` 代替。
- :cpp:func:`esp_crypto_shared_gdma_start` 请使用 :cpp:func:`esp_crypto_shared_gdma_start_axi_ahb` 代替。
注意,新的 AES 函数返回错误代码以提供更好的错误处理,与返回 void 的旧函数不同。
引导加载程序支持
------------------
**已移除的废弃 API**
以下废弃函数已被移除:
- :cpp:func:`esp_secure_boot_verify_signature_block` 请使用 :cpp:func:`esp_secure_boot_verify_ecdsa_signature_block` 代替。