This module provided various Bluetooth BR/EDR security functionality such as authorisation, authentication and encryption.
- Note
- General Security APIs are listed in Generic Security API section.
|
void | wiced_bt_dev_pin_code_reply (wiced_bt_device_address_t bd_addr, wiced_result_t res, uint8_t pin_len, uint8_t *p_pin) |
| PIN code reply (use in response to BTM_PIN_REQUEST_EVT in wiced_bt_management_cback_t) More...
|
|
void | wiced_bt_dev_pass_key_req_reply (wiced_result_t res, wiced_bt_device_address_t bd_addr, uint32_t passkey) |
| Provide the pairing passkey (in response to BTM_PASSKEY_REQUEST_EVT of wiced_bt_management_cback_t) More...
|
|
wiced_result_t | wiced_bt_dev_read_local_oob_data (void) |
| Read the local OOB data from controller (for sending to peer device over oob message). More...
|
|
void | wiced_bt_dev_remote_oob_data_reply (wiced_result_t res, wiced_bt_device_address_t bd_addr, wiced_bool_t is_extended_oob_data, BT_OCTET16 c_192, BT_OCTET16 r_192, BT_OCTET16 c_256, BT_OCTET16 r_256) |
| Provide the remote OOB extended data for Simple Pairing in response to BTM_REMOTE_OOB_DATA_REQUEST_EVT. More...
|
|
uint16_t | wiced_bt_dev_build_oob_data (uint8_t *p_data, uint16_t max_len, wiced_bool_t is_extended_oob_data, BT_OCTET16 c_192, BT_OCTET16 r_192, BT_OCTET16 c_256, BT_OCTET16 r_256) |
| Build the OOB data block to be used to send OOB extended data over OOB (non-Bluetooth) link. More...
|
|
void | wiced_bt_smp_oob_data_reply (wiced_bt_device_address_t bd_addr, wiced_result_t res, uint8_t len, uint8_t *p_data) |
| This function is called to provide the OOB data for SMP in response to BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT. More...
|
|
void | wiced_bt_smp_sc_oob_reply (wiced_bt_smp_sc_oob_data_t *p_oob_data) |
| Provide the SC OOB data for SMP in response to BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT. More...
|
|
uint8_t * | wiced_bt_dev_read_oob_data (uint8_t *p_data, uint8_t eir_tag, uint8_t *p_len) |
| This function is called to parse the OOB data payload received over OOB (non-Bluetooth) link. More...
|
|
void | wiced_bt_dev_lrac_disable_secure_connection (void) |
| Disable Bluetooth secure connection. More...
|
|
◆ wiced_bt_dev_pin_code_reply()
PIN code reply (use in response to BTM_PIN_REQUEST_EVT in wiced_bt_management_cback_t)
- Parameters
-
[in] | bd_addr | : Address of the device for which PIN was requested |
[in] | res | : result of the operation WICED_BT_SUCCESS if success |
[in] | pin_len | : length in bytes of the PIN Code |
[in] | p_pin | : pointer to array with the PIN Code |
- Returns
- void
- Note
- BR/EDR Only
◆ wiced_bt_dev_pass_key_req_reply()
Provide the pairing passkey (in response to BTM_PASSKEY_REQUEST_EVT of wiced_bt_management_cback_t)
- Parameters
-
[in] | res | : result of the operation WICED_BT_SUCCESS if success |
[in] | bd_addr | : Address of the peer device |
[in] | passkey | : numeric value in the range of 0 - 999999(0xF423F). |
- Returns
- void
- Note
- BR/EDR only
◆ wiced_bt_dev_read_local_oob_data()
Read the local OOB data from controller (for sending to peer device over oob message).
When operation is completed, local OOB data will be provided via BTM_READ_LOCAL_OOB_DATA_COMPLETE_EVT.
- Note
- BR/EDR Only
◆ wiced_bt_dev_remote_oob_data_reply()
Provide the remote OOB extended data for Simple Pairing in response to BTM_REMOTE_OOB_DATA_REQUEST_EVT.
- Parameters
-
[in] | res | : response reply |
[in] | bd_addr | : Address of the peer device |
[in] | is_extended_oob_data | : TRUE if extended OOB data (set according to BTM_REMOTE_OOB_DATA_REQUEST_EVT request) |
[in] | c_192 | : simple pairing Hash C derived from the P-192 public key. |
[in] | r_192 | : simple pairing Randomizer R associated with the P-192 public key. |
[in] | c_256 | : simple pairing Hash C derived from the P-256 public key (if is_extended_oob_data=TRUE) |
[in] | r_256 | : simple pairing Randomizer R associated with the P-256 public key (if is_extended_oob_data=TRUE) |
- Note
- BR/EDR Only
◆ wiced_bt_dev_build_oob_data()
Build the OOB data block to be used to send OOB extended data over OOB (non-Bluetooth) link.
- Parameters
-
[out] | p_data | : OOB data block location |
[in] | max_len | : OOB data block size |
[in] | is_extended_oob_data | : TRUE if extended OOB data (for Secure Connections) |
[in] | c_192 | : simple pairing Hash C derived from the P-192 public key. |
[in] | r_192 | : simple pairing Randomizer R associated with the P-192 public key. |
[in] | c_256 | : simple pairing Hash C derived from the P-256 public key (if is_extended_oob_data=TRUE) |
[in] | r_256 | : simple pairing Randomizer R associated with the P-256 public key (if is_extended_oob_data=TRUE) |
- Returns
- Number of bytes put into OOB data block.
- Note
- BR/EDR Only
◆ wiced_bt_smp_oob_data_reply()
This function is called to provide the OOB data for SMP in response to BTM_SMP_REMOTE_OOB_DATA_REQUEST_EVT.
- Parameters
-
[in] | bd_addr | - Address of the peer device |
[in] | res | - result of the operation WICED_BT_SUCCESS if success |
[in] | len | - oob data length |
[in] | p_data | - oob data |
- Note
- BR/EDR Only
◆ wiced_bt_smp_sc_oob_reply()
Provide the SC OOB data for SMP in response to BTM_SMP_SC_REMOTE_OOB_DATA_REQUEST_EVT.
- Parameters
-
◆ wiced_bt_dev_read_oob_data()
uint8_t* wiced_bt_dev_read_oob_data |
( |
uint8_t * |
p_data, |
|
|
uint8_t |
eir_tag, |
|
|
uint8_t * |
p_len |
|
) |
| |
This function is called to parse the OOB data payload received over OOB (non-Bluetooth) link.
- Parameters
-
[in] | p_data | : oob data |
[in] | eir_tag | : EIR Data type( version5.0, Volume 3, Part C Section 5.2.2.7 ) |
[out] | p_len | : the length of the data with the given EIR Data type |
- Returns
- The beginning of the data with the given EIR Data type. NULL, if the tag is not found.
- Note
- BR/EDR Only
◆ wiced_bt_dev_lrac_disable_secure_connection()
void wiced_bt_dev_lrac_disable_secure_connection |
( |
void |
| ) |
|
Disable Bluetooth secure connection.
- Note
- This utility is used for LRAC application to disable the Bluetooth secure connection only. If the interference issue is fixed, this utility may be removed This utility shall be called before the Bluetooth stack is initialized (by calling app_bt_init()).