Merge branch 'docs/translate_migration_guides' into 'master'

docs: Provide CN translation for two migration-guides docs

Closes DOC-11341

See merge request espressif/esp-idf!39858
This commit is contained in:
Shen Meng Jing
2025-06-16 11:09:50 +08:00
2 changed files with 25 additions and 1 deletions

View File

@@ -1,4 +1,19 @@
安全性
=======
======
:link_to_translation:`en:[English]`
.. only:: SOC_SHA_SUPPORTED
Mbed TLS
--------
**ESP-IDF v5.5** 开始SHA 子功能 API:cpp:func:`esp_sha_block`:cpp:func:`esp_sha_dma`)的使用方式发生了变化。
在此之前,这些 API 会在内部自动设置 SHA 模式。但从 ESP-IDF v5.5 起,需要在调用 API 前显式设置 SHA 模式。
例如,如果你打算使用 **SHA-256** 算法,必须首先调用 :cpp:func:`esp_sha_set_mode` 并传入参数 ``SHA2_256``
.. code-block:: c
esp_sha_set_mode(SHA2_256);

View File

@@ -2,3 +2,12 @@
=======
: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``