![]() |
nRF Connect SDK Bare Metal API 3.0.0-rc1
|
| uint32_t nrf_ble_lesc_keypair_generate | ( | void | ) |
#include <nrf_ble_lesc.h>
Generate ECC key pair used for the LESC procedure.
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.
| NRF_SUCCESS | If the operation was successful. |
| NRF_ERROR_INTERNAL | If psa_generate_key, or psa_export_public_key failed. |