nRF Connect SDK Bare Metal API 2.0.99
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
55
68
77ble_gap_lesc_p256_pk_t *nrf_ble_lesc_public_key_get(void);
78
89ble_gap_lesc_oob_data_t *nrf_ble_lesc_own_oob_data_get(void);
90
97
113
121void nrf_ble_lesc_on_ble_evt(const ble_evt_t *ble_evt);
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* NRF_BLE_LESC_H__ */
128
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 keypair 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_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.