nRF5 SDK for Mesh v3.2.0
Data Fields
nrf_mesh_prov_ctx_t Struct Reference

Common provisioning context forward declaration. More...

Data Fields

list_node_t * p_bearers
 Bearer linked list head pointer. More...
 
uint32_t supported_bearers
 Supported bearer types bitfield, nrf_mesh_prov_bearer_type_t. More...
 
prov_bearer_t * p_active_bearer
 Pointer to the currently active bearer (valid when )
 
nrf_mesh_prov_evt_handler_cb_t event_handler
 Application event handler callback function. More...
 
const uint8_t * p_public_key
 Public key of this node. More...
 
const uint8_t * p_private_key
 Private key of this node. More...
 
uint8_t peer_public_key [NRF_MESH_PROV_PUBKEY_SIZE]
 Public key of the peer node. More...
 
uint8_t shared_secret [NRF_MESH_PROV_ECDHSECRET_SIZE]
 ECDH shared secret: P-256(private key, peer public key). More...
 
uint8_t device_key [NRF_MESH_KEY_SIZE]
 Node device key. More...
 
uint8_t session_key [NRF_MESH_KEY_SIZE]
 Provisioning session key. More...
 
uint8_t data_nonce [PROV_NONCE_LEN]
 Provisioning data nonce. More...
 
uint8_t node_random [PROV_RANDOM_LEN]
 Random number for the current node. More...
 
uint8_t peer_random [PROV_RANDOM_LEN]
 Random number for the peer node. More...
 
uint8_t auth_value [PROV_AUTH_LEN]
 Authentication value. More...
 
uint8_t confirmation_salt [PROV_SALT_LEN]
 Confirmation salt value. More...
 
uint8_t peer_confirmation [PROV_CONFIRMATION_LEN]
 Confirmation value for the peer node. More...
 
uint8_t confirmation_inputs [PROV_CONFIRMATION_INPUT_LEN]
 Confirmation inputs, used to calculate the confirmation key. More...
 
uint8_t oob_size
 Size of the chosen OOB authentication data. More...
 
uint8_t oob_action
 Chosen OOB action. More...
 
bool pubkey_oob
 Uses out-of-band public key. More...
 
nrf_mesh_prov_role_t role
 Provisioning role, provisioner or provisionee. More...
 
nrf_mesh_prov_failure_code_t failure_code
 Error code sent with the previous provisioning failed packet. More...
 
nrf_mesh_prov_state_t state
 Provisioning state machine state. More...
 
nrf_mesh_prov_oob_method_t oob_method
 Chosen OOB authentication method. More...
 
nrf_mesh_prov_oob_caps_t capabilities
 Node OOB and authentication capabilities. More...
 
nrf_mesh_prov_provisioning_data_t data
 Provisioning data to send to the provisionee or received from the provisioner. More...
 
uint8_t attention_duration_s
 Time in seconds during which the device will identify itself using any means it can. More...
 

Detailed Description

Common provisioning context forward declaration.

Definition at line 81 of file nrf_mesh_prov.h.

Field Documentation

◆ p_bearers

list_node_t* nrf_mesh_prov_ctx_t::p_bearers

Bearer linked list head pointer.

Definition at line 83 of file nrf_mesh_prov.h.

◆ supported_bearers

uint32_t nrf_mesh_prov_ctx_t::supported_bearers

Supported bearer types bitfield, nrf_mesh_prov_bearer_type_t.

Definition at line 84 of file nrf_mesh_prov.h.

◆ event_handler

nrf_mesh_prov_evt_handler_cb_t nrf_mesh_prov_ctx_t::event_handler

Application event handler callback function.

Definition at line 86 of file nrf_mesh_prov.h.

Referenced by nrf_mesh_prov_oob_number_provide().

◆ p_public_key

const uint8_t* nrf_mesh_prov_ctx_t::p_public_key

Public key of this node.

Definition at line 88 of file nrf_mesh_prov.h.

◆ p_private_key

const uint8_t* nrf_mesh_prov_ctx_t::p_private_key

Private key of this node.

Definition at line 89 of file nrf_mesh_prov.h.

◆ peer_public_key

uint8_t nrf_mesh_prov_ctx_t::peer_public_key[NRF_MESH_PROV_PUBKEY_SIZE]

Public key of the peer node.

Definition at line 91 of file nrf_mesh_prov.h.

◆ shared_secret

uint8_t nrf_mesh_prov_ctx_t::shared_secret[NRF_MESH_PROV_ECDHSECRET_SIZE]

ECDH shared secret: P-256(private key, peer public key).

Definition at line 92 of file nrf_mesh_prov.h.

◆ device_key

uint8_t nrf_mesh_prov_ctx_t::device_key[NRF_MESH_KEY_SIZE]

Node device key.

Definition at line 94 of file nrf_mesh_prov.h.

◆ session_key

uint8_t nrf_mesh_prov_ctx_t::session_key[NRF_MESH_KEY_SIZE]

Provisioning session key.

Definition at line 95 of file nrf_mesh_prov.h.

◆ data_nonce

uint8_t nrf_mesh_prov_ctx_t::data_nonce[PROV_NONCE_LEN]

Provisioning data nonce.

Only 13 bytes are used.

Definition at line 96 of file nrf_mesh_prov.h.

◆ node_random

uint8_t nrf_mesh_prov_ctx_t::node_random[PROV_RANDOM_LEN]

Random number for the current node.

Definition at line 98 of file nrf_mesh_prov.h.

◆ peer_random

uint8_t nrf_mesh_prov_ctx_t::peer_random[PROV_RANDOM_LEN]

Random number for the peer node.

Definition at line 99 of file nrf_mesh_prov.h.

◆ auth_value

uint8_t nrf_mesh_prov_ctx_t::auth_value[PROV_AUTH_LEN]

Authentication value.

Definition at line 100 of file nrf_mesh_prov.h.

◆ confirmation_salt

uint8_t nrf_mesh_prov_ctx_t::confirmation_salt[PROV_SALT_LEN]

Confirmation salt value.

Definition at line 102 of file nrf_mesh_prov.h.

◆ peer_confirmation

uint8_t nrf_mesh_prov_ctx_t::peer_confirmation[PROV_CONFIRMATION_LEN]

Confirmation value for the peer node.

Definition at line 103 of file nrf_mesh_prov.h.

◆ confirmation_inputs

uint8_t nrf_mesh_prov_ctx_t::confirmation_inputs[PROV_CONFIRMATION_INPUT_LEN]

Confirmation inputs, used to calculate the confirmation key.

Definition at line 104 of file nrf_mesh_prov.h.

◆ oob_size

uint8_t nrf_mesh_prov_ctx_t::oob_size

Size of the chosen OOB authentication data.

Definition at line 106 of file nrf_mesh_prov.h.

◆ oob_action

uint8_t nrf_mesh_prov_ctx_t::oob_action

Chosen OOB action.

Definition at line 107 of file nrf_mesh_prov.h.

◆ pubkey_oob

bool nrf_mesh_prov_ctx_t::pubkey_oob

Uses out-of-band public key.

Definition at line 108 of file nrf_mesh_prov.h.

◆ role

nrf_mesh_prov_role_t nrf_mesh_prov_ctx_t::role

Provisioning role, provisioner or provisionee.

Definition at line 110 of file nrf_mesh_prov.h.

◆ failure_code

nrf_mesh_prov_failure_code_t nrf_mesh_prov_ctx_t::failure_code

Error code sent with the previous provisioning failed packet.

Definition at line 111 of file nrf_mesh_prov.h.

◆ state

nrf_mesh_prov_state_t nrf_mesh_prov_ctx_t::state

Provisioning state machine state.

Definition at line 112 of file nrf_mesh_prov.h.

◆ oob_method

nrf_mesh_prov_oob_method_t nrf_mesh_prov_ctx_t::oob_method

Chosen OOB authentication method.

Definition at line 113 of file nrf_mesh_prov.h.

◆ capabilities

nrf_mesh_prov_oob_caps_t nrf_mesh_prov_ctx_t::capabilities

Node OOB and authentication capabilities.

Definition at line 114 of file nrf_mesh_prov.h.

◆ data

nrf_mesh_prov_provisioning_data_t nrf_mesh_prov_ctx_t::data

Provisioning data to send to the provisionee or received from the provisioner.

Definition at line 115 of file nrf_mesh_prov.h.

◆ attention_duration_s

uint8_t nrf_mesh_prov_ctx_t::attention_duration_s

Time in seconds during which the device will identify itself using any means it can.

Definition at line 117 of file nrf_mesh_prov.h.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated