BLE SEC API. More...
Go to the source code of this file.
Data Structures | |
struct | sec_param_t |
SEC Parameter. More... | |
struct | sec_tk_t |
TK value. More... | |
struct | sec_oob_t |
SEC OOB value. More... | |
union | sec_cfm_enc_data_t |
SEC Confirm encryption data. More... | |
struct | sec_cfm_enc_t |
SEC Confirm encryption. More... | |
struct | sec_nc_t |
SEC number comparison value. More... | |
union | sec_enc_req_data_t |
SEC encryption request data. More... | |
struct | sec_enc_req_t |
SEC encryption request. More... | |
struct | sec_cb_fun_t |
SEC register call back. More... | |
Macros | |
#define | AUTH_NONE 0 |
#define | AUTH_BOND (1 << 0) |
#define | AUTH_MITM (1 << 2) |
#define | AUTH_SEC_CON (1 << 3) |
#define | AUTH_KEY_PRESS_NOTIFY (1 << 4) |
#define | AUTH_ALL (AUTH_BOND | AUTH_MITM | AUTH_SEC_CON | AUTH_KEY_PRESS_NOTIFY) |
#define | KDIST_NONE 0 |
#define | KDIST_ENCKEY (1 << 0) |
#define | KDIST_IDKEY (1 << 1) |
#define | KDIST_SIGNKEY (1 << 2) |
#define | KDIST_ALL (KDIST_ENCKEY | KDIST_IDKEY | KDIST_SIGNKEY) |
Functions | |
uint16_t | ble_sec_params_set (sec_param_t *p_sec_param) |
Set security parameter. More... | |
uint16_t | ble_sec_enc_start (uint8_t conn_idx) |
Start security encryption, this interface is used by both slave and master. More... | |
uint16_t | ble_sec_enc_cfm (uint8_t conn_idx, const sec_cfm_enc_t *p_cfm_enc) |
Send the encrypt confirm information. More... | |
uint16_t | ble_sec_keypress_notify_send (uint8_t conn_idx, uint8_t notify_type) |
Send key press notify. More... | |
BLE SEC API.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.