File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
docs/zh_CN/migration-guides Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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);
Original file line number Diff line number Diff line change 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 ``。
You can’t perform that action at this time.
0 commit comments