sm.h (d1a1f6a4cfae6dd341f1d30e1d0507bf3ca29c49) | sm.h (899e6e028aa68dd07d5aca8a384553a863d07499) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 47 unchanged lines hidden (view full) --- 56/* API_START */ 57 58/** 59 * @brief Initializes the Security Manager, connects to L2CAP 60 */ 61void sm_init(void); 62 63/** | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 47 unchanged lines hidden (view full) --- 56/* API_START */ 57 58/** 59 * @brief Initializes the Security Manager, connects to L2CAP 60 */ 61void sm_init(void); 62 63/** |
64 * @brief Set secret ER key for key generation as described in Core V4.0, Vol 3, Part G, 5.2.2 | 64 * @brief Set secret ER key for key generation as described in Core V4.0, Vol 3, Part G, 5.2.2 65 * @note If not set and btstack_tlv is configured, ER key is generated and stored in TLV by SM |
65 * @param er 66 */ 67void sm_set_er(sm_key_t er); 68 69/** | 66 * @param er 67 */ 68void sm_set_er(sm_key_t er); 69 70/** |
70 * @brief Set secret IR key for key generation as described in Core V4.0, Vol 3, Part G, 5.2.2 | 71 * @brief Set secret IR key for key generation as described in Core V4.0, Vol 3, Part G, 5.2.2 72 * @note If not set and btstack_tlv is configured, IR key is generated and stored in TLV by SM |
71 */ 72void sm_set_ir(sm_key_t ir); 73 74/** 75 * 76 * @brief Registers OOB Data Callback. The callback should set the oob_data and return 1 if OOB data is availble 77 * @param get_oob_data_callback 78 */ --- 178 unchanged lines hidden --- | 73 */ 74void sm_set_ir(sm_key_t ir); 75 76/** 77 * 78 * @brief Registers OOB Data Callback. The callback should set the oob_data and return 1 if OOB data is availble 79 * @param get_oob_data_callback 80 */ --- 178 unchanged lines hidden --- |