This group includes security APIs.
Functions | |
at_ble_status_t | at_ble_authenticate (at_ble_handle_t conn_handle, at_ble_pair_features_t *features, at_ble_LTK_t *ltk, at_ble_CSRK_t *csrk) |
Starts Pairing procedure for a given connection. More... | |
at_ble_status_t | at_ble_encryption_request_reply (at_ble_handle_t conn_handle, at_ble_auth_t auth, bool key_found, at_ble_LTK_t *key) |
Responds to encryption start request from master device AT_BLE_ENCRYPTION_REQUEST, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered. More... | |
at_ble_status_t | at_ble_encryption_start (at_ble_handle_t conn_handle, at_ble_LTK_t *key, at_ble_auth_t auth) |
Starts encryption, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered. More... | |
at_ble_status_t | at_ble_pair_key_reply (at_ble_handle_t conn_handle, at_ble_pair_key_type_t type, uint8_t *key) |
Provides a passkey or OOB data that was requested via AT_BLE_PAIR_KEY_REQUEST event, If key type is AT_BLE_PAIR_PASSKEY, then a 6-byte ASCII string (digit 0..9 only). More... | |
at_ble_status_t | at_ble_send_sec_config (at_ble_signature_info_t *signature_info, at_ble_auth_t authen, bool service_changed) |
Set specific link security configuration and bonding data. More... | |
at_ble_status_t | at_ble_send_slave_sec_request (at_ble_handle_t conn_handle, bool mitm_protection, bool bond) |
Send slave security request to master. More... | |
at_ble_status_t at_ble_authenticate | ( | at_ble_handle_t | conn_handle, |
at_ble_pair_features_t * | features, | ||
at_ble_LTK_t * | ltk, | ||
at_ble_CSRK_t * | csrk | ||
) |
Starts Pairing procedure for a given connection.
This API will initiate the authentication procedure, given local device requirements and IO capabilities the authentication will proceed in a number of ways, progress is monitored and controlled via the events : AT_BLE_PAIR_KEY_REQUEST ,AT_BLE_PAIR_DONE
In the central role, this function will send an SMP Pairing Request, otherwise in the peripheral role, this function will reply to AT_BLE_PAIR_REQUEST.
[in] | conn_handle | handle of the ongoing connection |
[in] | features | local device requirements and IO capabilities, should be NULL to reject the pairing request in case of pairing as SLAVE connection ONLY. |
[in] | ltk | Local device Long Term Key, null if not available |
[in] | csrk | Local device Connection Signature Resolution Key, null if not available |
Referenced by ble_pair_request_handler(), and ble_slave_security_request_handler().
at_ble_status_t at_ble_encryption_request_reply | ( | at_ble_handle_t | conn_handle, |
at_ble_auth_t | auth, | ||
bool | key_found, | ||
at_ble_LTK_t * | key | ||
) |
Responds to encryption start request from master device AT_BLE_ENCRYPTION_REQUEST, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered.
[in] | conn_handle | handle of the connection to be updated |
[in] | key_found | If true then a valid key is found in device database and will be used |
[in] | auth | authentication level |
[in] | key | LTK key used for encryption |
Referenced by ble_encryption_request_handler().
at_ble_status_t at_ble_encryption_start | ( | at_ble_handle_t | conn_handle, |
at_ble_LTK_t * | key, | ||
at_ble_auth_t | auth | ||
) |
Starts encryption, once encryption starts AT_BLE_ENCRYPTION_STATUS_CHANGED event is delivered.
[in] | conn_handle | handle of the connection to be updated |
[in] | key | LTK key used for encryption |
[in] | auth | authentication level , this information must be stored in device database after each pairing process at_ble_pair_done_t |
Referenced by ble_slave_security_request_handler(), and pxp_monitor_app_button_event().
at_ble_status_t at_ble_pair_key_reply | ( | at_ble_handle_t | conn_handle, |
at_ble_pair_key_type_t | type, | ||
uint8_t * | key | ||
) |
Provides a passkey or OOB data that was requested via AT_BLE_PAIR_KEY_REQUEST event, If key type is AT_BLE_PAIR_PASSKEY, then a 6-byte ASCII string (digit 0..9 only).
If key type is AT_BLE_PAIR_OOB , then a 16-byte OOB key value in Little Endian format
[in] | conn_handle | handle of the ongoing connection |
[in] | type | type of requested key, must match the one asked for in AT_BLE_PAIR_KEY_REQUEST |
[in] | key | the key requested, should be NULL to reject the pairing TK exchange and terminate pairing procedure. |
Referenced by ble_pair_key_request_handler().
at_ble_status_t at_ble_send_sec_config | ( | at_ble_signature_info_t * | signature_info, |
at_ble_auth_t | authen, | ||
bool | service_changed | ||
) |
Set specific link security configuration and bonding data.
[in] | signature_info | signature_info, more info at at_ble_signature_info_t |
[in] | authen | Authentication value, one of at_ble_auth_t |
[in] | service_changed | Service Changed Indication enabled |
at_ble_status_t at_ble_send_slave_sec_request | ( | at_ble_handle_t | conn_handle, |
bool | mitm_protection, | ||
bool | bond | ||
) |
Send slave security request to master.
[in] | conn_handle | handle of the ongoing connection |
[in] | mitm_protection | Boolean value for Man-In-The-Middle protection FALSE -> Disable, TRUE -> Enable |
[in] | bond |
Referenced by ble_send_slave_sec_request().