Skip to content

Commit 71072cc

Browse files
committed
docs: Provide CN translation for two migration-guides docs
1 parent d38621e commit 71072cc

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,19 @@
11
安全性
2-
=======
2+
======
33

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

docs/zh_CN/migration-guides/release-6.x/6.0/security.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@
22
=======
33

44
:link_to_translation:`en:[English]`
5+
6+
Mbed TLS
7+
--------
8+
9+
从 **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``。
10+
11+
.. only:: SOC_SHA_SUPPORTED
12+
13+
SHA 模块头文件 ``sha/sha_dma.h`` 和 ``sha/sha_block.h`` 也已废弃并被移除,请改为包含 ``sha/sha_core.h``。

0 commit comments

Comments
 (0)