nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ nrf_ble_lesc_keypair_generate()

uint32_t nrf_ble_lesc_keypair_generate ( void )

#include <nrf_ble_lesc.h>

Generate ECC keypair used for the LESC procedure.

This function generates an ECC key pair, which consists of a private and public key. 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_BUSYIf any pending request needs to be processed by nrf_ble_lesc_request_handler.
NRF_ERROR_INTERNALIf psa_generate_key, or psa_export_public_key failed.
Returns
Other error codes might be returned.