mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(ble_mesh): comment out logs containing sensitive keys
(cherry picked from commit 781d6b2314)
Co-authored-by: luoxu <luoxu@espressif.com>
This commit is contained in:
@@ -347,8 +347,8 @@ void bt_mesh_set_private_key_raw(const uint8_t pri_key[32])
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
BT_DBG("Pubkey:%s", bt_hex(dh_pair.public_key, PUB_KEY_SIZE));
|
||||
BT_DBG("Privkey:%s", bt_hex(dh_pair.private_key, PRIV_KEY_SIZE));
|
||||
// BT_DBG("Pubkey:%s", bt_hex(dh_pair.public_key, PUB_KEY_SIZE));
|
||||
// BT_DBG("Privkey:%s", bt_hex(dh_pair.private_key, PRIV_KEY_SIZE));
|
||||
dh_pair.is_ready = true;
|
||||
|
||||
cleanup:
|
||||
|
||||
@@ -380,7 +380,7 @@ void bt_mesh_set_private_key_raw(const uint8_t pri_key[32])
|
||||
psa_status_t status;
|
||||
size_t key_len;
|
||||
|
||||
BT_DBG("Privkey:%s", bt_hex(pri_key, PRIV_KEY_SIZE));
|
||||
// BT_DBG("Privkey:%s", bt_hex(pri_key, PRIV_KEY_SIZE));
|
||||
|
||||
/* Destroy any existing key */
|
||||
if (dh_pair.priv_key_id != PSA_KEY_ID_NULL) {
|
||||
@@ -414,7 +414,7 @@ void bt_mesh_set_private_key_raw(const uint8_t pri_key[32])
|
||||
return;
|
||||
}
|
||||
|
||||
BT_DBG("Pubkey:%s", bt_hex(&dh_pair.public_key[1], PUB_KEY_SIZE));
|
||||
// BT_DBG("Pubkey:%s", bt_hex(&dh_pair.public_key[1], PUB_KEY_SIZE));
|
||||
dh_pair.is_ready = true;
|
||||
psa_reset_key_attributes(&attributes);
|
||||
}
|
||||
|
||||
@@ -236,8 +236,8 @@ void bt_mesh_set_private_key_raw(const uint8_t pri_key[32])
|
||||
return;
|
||||
}
|
||||
|
||||
BT_DBG("Pubkey:%s", bt_hex(dh_pair.public_key, PUB_KEY_SIZE));
|
||||
BT_DBG("Privkey:%s", bt_hex(dh_pair.private_key, PRIV_KEY_SIZE));
|
||||
// BT_DBG("Pubkey:%s", bt_hex(dh_pair.public_key, PUB_KEY_SIZE));
|
||||
// BT_DBG("Privkey:%s", bt_hex(dh_pair.private_key, PRIV_KEY_SIZE));
|
||||
dh_pair.is_ready = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user