change(mbedtls/psa_driver_esp_hmac): Use efuse key block instead of efuse block

- Maintains compatibility of the older esp_hmac_ APIs and the PSA driver
This commit is contained in:
harshal.patil
2026-02-26 12:22:17 +05:30
parent aa63487d9f
commit 163e0974b3
6 changed files with 11 additions and 17 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ Now we can calculate an HMAC for software usage with the saved key through the P
// Create opaque key reference
esp_hmac_opaque_key_t opaque_key = {
.use_km_key = false,
.efuse_block = EFUSE_BLK_KEY4,
.efuse_key_id = HMAC_KEY4,
};
// Import the opaque key
@@ -184,7 +184,7 @@ HMAC 的第三种应用场景是将其作为密钥,启用软禁用的 JTAG 接
// 创建不透明密钥引用
esp_hmac_opaque_key_t opaque_key = {
.use_km_key = false,
.efuse_block = EFUSE_BLK_KEY4,
.efuse_key_id = HMAC_KEY4,
};
// 导入不透明密钥