esp_ble_mesh_provisioner_read_oob_pub_key() function
Provisioner inputs unprovisioned device's oob public key.
Arguments
link_idx
The provisioning link index
pub_key_x
Unprovisioned device's Public Key X
pub_key_y
Unprovisioned device's Public Key Y
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.
![]()
esp_err_t esp_ble_mesh_provisioner_read_oob_pub_key(uint8_t link_idx, uint8_t pub_key_x[32],
esp_ble_mesh_provisioner_read_oob_pub_key() calls 2 functions:
![]()
esp_ble_mesh_provisioner_read_oob_pub_key()
esp_ble_mesh_provisioner_read_oob_pub_key() reads 8 variables and writes 4 variables:
![]()
esp_ble_mesh_provisioner_read_oob_pub_key()