Skip to content

Commit 536ec82

Browse files
April-Yjjlaukik-hase
authored andcommitted
docs: Update translation for nvs_encryption and security docs
1 parent 1ea0fc2 commit 536ec82

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/zh_CN/api-reference/storage/nvs_encryption.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ NVS Security Provider
219219

220220
该组件通过工厂函数注册了特殊的安全框架,可以实现出厂即用的安全方案。在该方案中,无需使用 API 来生成、读取加密密钥(如 :cpp:func:`nvs_sec_provider_register_hmac`)。要了解 API 的使用,参考示例 :example:`security/nvs_encryption_hmac`。
221221

222+
.. note::
223+
224+
如果不希望使用 :component: `nvs_sec_provider` 组件的默认实现,而使用自定义方式生成或者保护 NVS 加密密钥,请选择 :ref:`CONFIG_NVS_SEC_KEY_PROTECTION_SCHEME` -> ``CONFIG_NVS_SEC_KEY_PROTECT_NONE`` 配置项。
222225

223226
API 参考
224227
-------------

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ Mbed TLS
3030
以下废弃函数已被移除:
3131

3232
- :cpp:func:`esp_secure_boot_verify_signature_block` – 请使用 :cpp:func:`esp_secure_boot_verify_ecdsa_signature_block` 代替。
33+
34+
.. only:: SOC_HMAC_SUPPORTED
35+
36+
NVS 安全方案
37+
----------------
38+
39+
- 当 SoC 具备 HMAC 外设并启用了 flash 加密时,如果同时还启用了 NVS 加密,则默认会选择基于 HMAC 的 NVS 加密方案,而不是基于 flash 加密的方案。如果你的应用程序之前基于 flash 加密,则需要通过 ``menuconfig`` 或项目的 ``sdkconfig`` 文件,手动将 NVS 加密方案从 HMAC 配置为 flash 加密(即设置 ``CONFIG_NVS_SEC_KEY_PROTECT_USING_FLASH_ENC=y``)。

0 commit comments

Comments
 (0)