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

◆ nrf_ble_lesc_keypair_generate()

uint32_t nrf_ble_lesc_keypair_generate ( void )

#include <nrf_ble_lesc.h>

Generate ECC key pair used for the LESC procedure.

Deprecated
Use nrf_ble_lesc_keypair_renew_request instead and then wait for the PM_EVT_LESC_ECC_KEYPAIR_RENEWED event.

This function generates an ECC key pair, which consists of a private and public key. The generation is deferred to nrf_ble_lesc_request_handler if called from an ISR. Keys are generated using ECC and are used to create LESC DH key during authentication procedures.

Return values
NRF_SUCCESSIf the operation was successful.
NRF_ERROR_INTERNALIf psa_generate_key, or psa_export_public_key failed.
Returns
Other error codes might be returned.