182 Commits

Author SHA1 Message Date
Matthias Ringwald
13377825df sm: add identity_addr and identiy_addr_type to SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED. Also emit SM_EVENT_IDENTITY_CREATED during pairing 2016-10-27 11:11:40 +02:00
Matthias Ringwald
3545469685 hci: disable parts of classic code if ENABLE_CLASSIC is not defined 2016-10-19 16:06:11 +02:00
Matthias Ringwald
202c8a4c4c fix warnings/bugs reported by eclipse static analyzer 2016-10-19 10:49:33 +02:00
Matthias Ringwald
f04a0c3191 fix warnings for using %u with int vars 2016-10-09 21:59:50 +02:00
Matthias Ringwald
4a6806f394 sm: avoid cppcheck errors (false positive) about unitilized variables 2016-10-07 22:01:52 +02:00
Matthias Ringwald
51261ae3e2 fix common realloc mistake 2016-10-07 20:54:39 +02:00
Matthias Ringwald
fac60fea7b fix compile 2016-09-29 16:06:01 +02:00
Matthias Ringwald
b12ad86731 example: gap_inquiry use Extended Inquiry Response to get name directly if possible 2016-09-29 15:53:57 +02:00
Matthias Ringwald
4b8b5afea6 sm: handle IRK lookup in general case, inline SM_SC_SEND_LTK_REQUESTED_NEGATIVE_REPLY handling 2016-09-28 10:51:44 +02:00
Matthias Ringwald
41d322973c sm: fix sending of negative ltk reply 2016-09-28 10:43:33 +02:00
Matthias Ringwald
70a390c7e0 att_server: check handle in disconnection complete event 2016-07-29 11:33:28 +02:00
Matthias Ringwald
06cd539f41 sm: fix pairing in legacy mode 2016-07-15 17:28:02 +02:00
Matthias Ringwald
7c959318bb fix warnings related to potential loss of precision for integer conversions 2016-07-05 11:31:53 +02:00
Matthias Ringwald
ae4aa2b6a5 sm: reduce mbedtls heap to less than 800 bytes for 32-bit CPUs. Use mbedtls_mpi_lset instead of mbedtls_mpi_read_string 2016-06-29 11:03:11 +02:00
Matthias Ringwald
aa7d4d9c48 sm: store non-truncated LTK in setup->sm_local_ltk for cross transport key derivation - see E6405 2016-06-27 17:12:51 +02:00
Matthias Ringwald
b18300a6ef sm: store non-truncated LTK in setup->sm_local_ltk for cross transport key derivation - see E6405 2016-06-27 17:11:08 +02:00
Matthias Ringwald
893e933318 sm: truncate LTK for SC as needed 2016-06-27 16:55:29 +02:00
Matthias Ringwald
f33ad81deb sm: add le_device_db_set_local_addr and call with local address 2016-06-27 15:58:58 +02:00
Matthias Ringwald
778b6aad6d sm: fix SC key exchange (regression from d747193) 2016-06-27 15:57:46 +02:00
Matthias Ringwald
d2e9012210 sm: use ltk from db for sc in initiator role 2016-06-27 14:56:08 +02:00
Matthias Ringwald
d747193162 sm: use ltk from db for sc in responder role, fix sending keypress notifictations 2016-06-27 14:37:47 +02:00
Matthias Ringwald
549ad5d20f sm: on LTK request, if ediv or rand no null, start calculating LTK for legacy pairing. If ediv or rand not null, check le device db for LTK if SC are enabled on LTK 2016-06-24 17:24:35 +02:00
Matthias Ringwald
59066796a6 sm: extract sm_start_calculating_ltk_from_ediv_and_rand 2016-06-24 16:50:03 +02:00
Matthias Ringwald
78f44163d6 sm: remove temp hack to store LTK for SC 2016-06-23 23:26:25 +02:00
Matthias Ringwald
613da3de46 sm: store LTK in db for SC. document key management strategy 2016-06-23 12:57:43 +02:00
Matthias Ringwald
2bacf59502 sm: derive BR/EDR Link Key from LE LTK established via LE Secure Connection 2016-06-20 14:17:25 +02:00
Matthias Ringwald
4dfd504ad1 sm: sm_cmac_start -> sm_cmac_signed_write 2016-06-20 11:34:56 +02:00
Matthias Ringwald
76427ed5d9 sm: drop single event handler 2016-06-16 12:35:03 +02:00
Matthias Ringwald
3d7fe1e922 sm: send/receive keypress notifications 2016-06-16 12:32:12 +02:00
Matthias Ringwald
31c0948871 sm: fix compile without sc 2016-06-10 13:52:12 +02:00
Matthias Ringwald
a3aba2f99a sm: fix compile 2016-06-10 13:46:47 +02:00
Matthias Ringwald
b41539d54f sm: generate random number to display for SC with PK_RESP_INPUT generation mode 2016-06-09 23:19:11 +02:00
Matthias Ringwald
2e6217a04c sm: fix ec key generation and logging 2016-06-09 22:53:44 +02:00
Matthias Ringwald
0b8af2a5ee sm: fix legacy pairing trigger user response as responder 2016-06-09 22:25:17 +02:00
Matthias Ringwald
b8f36d6c46 Merge branch 'develop' into le-secure-connection 2016-06-09 21:44:03 +02:00
Matthias Ringwald
a83a05444b sm: use correct ec test key, reduce memory to 1500 bytes 2016-06-09 15:07:53 +02:00
Matthias Ringwald
04da39e3f2 le: drop le_device_db_dummy.c 2016-06-07 16:17:47 +02:00
Matthias Ringwald
b6e003bca9 gatt: log gatt client events to hci_dump 2016-06-07 16:13:38 +02:00
Matthias Ringwald
d7748d9cec sm: increase buffer for ec key generation 2016-06-03 22:52:39 +02:00
Matthias Ringwald
df86eb966a sm: add sm_use_fixed_ec_keypair, ENABLE_FIXED_LE_EC_KEY skips EC key generation saving 4400 bytes 2016-06-03 22:45:23 +02:00
Matthias Ringwald
57a91edd49 sm: track max use in custom allocator 2016-06-03 17:15:05 +02:00
Matthias Ringwald
68437d838a sm: use custom memory allocator for mbedtls if not HAVE_MALLOC 2016-06-03 17:05:38 +02:00
Matthias Ringwald
e01675d351 sm: provide basic memory allocator for use with mbedtls 2016-06-03 16:59:29 +02:00
Matthias Ringwald
e722521ad6 sm: split mbedtls keypair into group. point, and value 2016-06-01 20:39:31 +02:00
Matthias Ringwald
05299751b9 sm: cache local ec key 2016-06-01 16:49:26 +02:00
Matthias Ringwald
d3bd960056 sm: use mbedtls's memory allocator with 5k buffer if HAVE_MALLOC is not defined 2016-06-01 12:15:41 +02:00
Matthias Ringwald
6643eff824 sm: track calloc/free in mbedtls 2016-06-01 10:43:47 +02:00
Matthias Ringwald
891bb64a19 sm: call mbedtls_x_free functions 2016-05-31 23:16:52 +02:00
Matthias Ringwald
3764b5516a sm: use LK from LE Device DB for SC in initiator role 2016-05-31 22:31:20 +02:00
Matthias Ringwald
7dbe5dcf89 sm: release setup context after sending LTK negative reply 2016-05-31 19:14:25 +02:00