nRF Connect SDK Bare Metal API 3.0.0-rc1
Loading...
Searching...
No Matches
nrf_ble_lesc.h
1/*
2 * Copyright (c) 2018-2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef NRF_BLE_LESC_H__
16#define NRF_BLE_LESC_H__
17
18#include <stdint.h>
19#include <string.h>
20#include <ble.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27typedef ble_gap_lesc_oob_data_t *(*nrf_ble_lesc_peer_oob_data_handler)(uint16_t conn_handle);
28
39uint32_t nrf_ble_lesc_init(void);
40
57
74
84
93ble_gap_lesc_p256_pk_t *nrf_ble_lesc_public_key_get(void);
94
104ble_gap_lesc_oob_data_t *nrf_ble_lesc_own_oob_data_get(void);
105
112
128
136void nrf_ble_lesc_on_ble_evt(const ble_evt_t *ble_evt);
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* NRF_BLE_LESC_H__ */
143
void nrf_ble_lesc_on_ble_evt(const ble_evt_t *ble_evt)
Handle Bluetooth LE stack events.
ble_gap_lesc_p256_pk_t * nrf_ble_lesc_public_key_get(void)
Get the ECC public key used for LESC DH key generation.
uint32_t nrf_ble_lesc_keypair_generate(void)
Generate ECC key pair used for the LESC procedure.
uint32_t nrf_ble_lesc_own_oob_data_generate(void)
Generate LESC OOB data.
uint32_t nrf_ble_lesc_init(void)
Initialize the LESC module.
ble_gap_lesc_oob_data_t *(* nrf_ble_lesc_peer_oob_data_handler)(uint16_t conn_handle)
Peer OOB Data handler prototype.
Definition nrf_ble_lesc.h:27
ble_gap_lesc_oob_data_t * nrf_ble_lesc_own_oob_data_get(void)
Get the LESC Out-of-Band data.
void nrf_ble_lesc_keypair_renew_request(void)
Request that the ECC key pair should be regenerated.
void nrf_ble_lesc_peer_oob_data_handler_set(nrf_ble_lesc_peer_oob_data_handler handler)
Set the handler used to retrieve peer OOB data.
uint32_t nrf_ble_lesc_request_handler(void)
Respond to DH key requests.