esp_ble_mesh_node_set_oob_pub_key() function
Unprovisioned device set own oob public key & private key pair.
Arguments
pub_key_x
Unprovisioned device's Public Key X
pub_key_y
Unprovisioned device's Public Key Y
private_key
Unprovisioned device's Private Key
Return value
ESP_OK on success or error code otherwise.
Notes
In order to avoid suffering brute-forcing attack (CVE-2020-26559). The Bluetooth SIG recommends that potentially vulnerable mesh provisioners use an out-of-band mechanism to exchange the public keys. So as an unprovisioned device, it should use this function to input the Public Key exchanged through the out-of-band mechanism.
esp_ble_mesh_node_set_oob_pub_key() calls 2 functions:
![]()
esp_ble_mesh_node_set_oob_pub_key()
esp_ble_mesh_node_set_oob_pub_key() reads 9 variables and writes 3 variables:
![]()
esp_ble_mesh_node_set_oob_pub_key()