Go to the documentation of this file.
62 #define AUTH_BOND (1 << 0)
63 #define AUTH_MITM (1 << 2)
64 #define AUTH_SEC_CON (1 << 3)
65 #define AUTH_KEY_PRESS_NOTIFY (1 << 4)
66 #define AUTH_ALL (AUTH_BOND | AUTH_MITM | AUTH_SEC_CON | AUTH_KEY_PRESS_NOTIFY)
73 #define KDIST_ENCKEY (1 << 0)
74 #define KDIST_IDKEY (1 << 1)
75 #define KDIST_SIGNKEY (1 << 2)
76 #define KDIST_ALL (KDIST_ENCKEY | KDIST_IDKEY | KDIST_SIGNKEY)
236 void (*app_sec_enc_ind_cb)(uint8_t conn_idx,
sec_enc_ind_t enc_ind, uint8_t auth);
@ SEC_MODE1_LEVEL2
Definition: ble_sec.h:145
sec_oob_t oob_data
Definition: ble_sec.h:221
sec_enc_req_type_t req_type
Definition: ble_sec.h:206
bool oob
Definition: ble_sec.h:176
@ ENC_FAIL_CONFIRM_VAL_FAIL
Definition: ble_sec.h:122
@ KEY_PRESS_STARTED
Definition: ble_sec.h:107
@ SEC_MODE1_LEVEL1
Definition: ble_sec.h:144
sec_enc_req_type_t
SEC Encryption Request Type.
Definition: ble_sec.h:97
@ ENC_FAIL_UNSPECIFIED
Definition: ble_sec.h:126
uint16_t ble_sec_enc_cfm(uint8_t conn_idx, const sec_cfm_enc_t *p_cfm_enc)
Send the encrypt confirm information.
uint8_t auth
Definition: ble_sec.h:177
@ PAIR_REQ
Definition: ble_sec.h:98
TK value.
Definition: ble_sec.h:185
@ ENC_FAIL_PAIRING_NOT_SUPPORT
Definition: ble_sec.h:123
sec_keypress_notify_t
SEC Key Press Notify.
Definition: ble_sec.h:106
SEC number comparison value.
Definition: ble_sec.h:213
SEC Confirm encryption.
Definition: ble_sec.h:205
sec_enc_req_data_t data
Definition: ble_sec.h:229
SEC OOB value.
Definition: ble_sec.h:191
@ SEC_TK_DISPLAY
Definition: ble_sec.h:156
sec_oob_t oob
Definition: ble_sec.h:200
uint16_t ble_sec_keypress_notify_send(uint8_t conn_idx, uint8_t notify_type)
Send key press notify.
uint8_t key_size
Definition: ble_sec.h:178
sec_tk_t tk
Definition: ble_sec.h:199
@ IO_DISPLAY_YES_NO
Definition: ble_sec.h:87
@ KEY_PRESS_ERASED
Definition: ble_sec.h:109
sec_io_cap_t
SEC IO Capability.
Definition: ble_sec.h:85
@ KEY_PRESS_CLEARED
Definition: ble_sec.h:110
@ ENC_SUCCESS
Definition: ble_sec.h:117
uint16_t ble_sec_params_set(sec_param_t *p_sec_param)
Set security parameter.
sec_nc_t nc_data
Definition: ble_sec.h:222
@ SEC_TK_KEY_ENTRY
Definition: ble_sec.h:157
@ LTK_VALID_MASK_ERR
Definition: ble_sec.h:164
@ ENC_FAIL_REPEAT_ATTEMPT
Definition: ble_sec.h:127
@ SEC_MODE2_LEVEL1
Definition: ble_sec.h:148
sec_tk_type_t
SEC TK type.
Definition: ble_sec.h:154
@ IO_KEYBOARD_ONLY
Definition: ble_sec.h:88
SEC Confirm encryption data.
Definition: ble_sec.h:198
sec_key_missing_reason_t
Key missing reason.
Definition: ble_sec.h:162
File that contains error codes.
@ SEC_MODE1_LEVEL4
Definition: ble_sec.h:147
SEC Parameter.
Definition: ble_sec.h:173
@ TK_REQ
Definition: ble_sec.h:99
@ ENC_FAIL_LTK_MISSING
Definition: ble_sec.h:138
SEC register call back.
Definition: ble_sec.h:234
@ SEC_TK_OOB
Definition: ble_sec.h:155
SEC encryption request data.
Definition: ble_sec.h:219
uint8_t ikey_dist
Definition: ble_sec.h:179
uint8_t rkey_dist
Definition: ble_sec.h:180
@ EDIV_RAND_VALUE_ERR
Definition: ble_sec.h:165
@ SEC_MODE1_LEVEL3
Definition: ble_sec.h:146
sec_tk_type_t tk_type
Definition: ble_sec.h:220
@ ENC_FAIL_COMMAND_NOT_SUPPORT
Definition: ble_sec.h:125
@ SEC_MODE2_LEVEL2
Definition: ble_sec.h:149
sec_enc_req_type_t req_type
Definition: ble_sec.h:228
uint16_t ble_sec_enc_start(uint8_t conn_idx)
Start security encryption, this interface is used by both slave and master.
@ ENC_FAIL_AUTH_REQ
Definition: ble_sec.h:120
bool accept
Definition: ble_sec.h:207
@ ENC_FAIL_INVALID_PARAM
Definition: ble_sec.h:129
@ KEY_PRESS_ENTERED
Definition: ble_sec.h:108
sec_cfm_enc_data_t data
Definition: ble_sec.h:208
SEC encryption request.
Definition: ble_sec.h:227
@ ENC_FAIL_ENCRPT_KEY_SIZE
Definition: ble_sec.h:124
@ IO_DISPLAY_ONLY
Definition: ble_sec.h:86
@ ENC_FAIL_BR_EDR_IN_PROGRESS
Definition: ble_sec.h:134
sec_mode_level_t
SEC mode and level.
Definition: ble_sec.h:143
sec_enc_ind_t
SEC pair result.
Definition: ble_sec.h:116
sec_mode_level_t level
Definition: ble_sec.h:174
@ ENC_FAIL_DHKEY_CHECK_FAIL
Definition: ble_sec.h:131
@ NC_REQ
Definition: ble_sec.h:101
@ BOND_INFO_LOAD_FAILED
Definition: ble_sec.h:163
@ ENC_FAIL_NUM_CMP_FAIL
Definition: ble_sec.h:133
@ KEY_PRESS_COMPLETED
Definition: ble_sec.h:111
sec_io_cap_t io_cap
Definition: ble_sec.h:175
@ IO_NO_INPUT_NO_OUTPUT
Definition: ble_sec.h:89
@ IO_KEYBOARD_DISPLAY
Definition: ble_sec.h:90
@ ENC_FAIL_OOB_NOT_AVAILBL
Definition: ble_sec.h:119
@ ENC_FAIL_KEY_DRIV_GEN_NOT_ALLOW
Definition: ble_sec.h:136
@ ENC_FAIL_PASSKEY_ENTRY_FAIL
Definition: ble_sec.h:118
@ OOB_REQ
Definition: ble_sec.h:100