nRF Connect SDK Bare Metal API 3.0.0-rc1
Loading...
Searching...
No Matches

◆ nrf_ble_lesc_request_handler()

uint32_t nrf_ble_lesc_request_handler ( void )

#include <nrf_ble_lesc.h>

Respond to DH key requests.

This function calculates DH keys and supplies them to the SoftDevice if there are any pending requests for keys. When requested, the function will renew the ECC key pair.

Note
This function should be called systematically (e.g. in the main application loop) to handle any pending DH key requests.
Return values
NRF_SUCCESSIf the operation was successful.
NRF_ERROR_FORBIDDENIf called from ISR.
NRF_ERROR_INTERNALIf the ECC key pair or the OOB data could not be renewed.
Returns
Other error codes might be returned by the sd_ble_gap_lesc_dhkey_reply function.