5775 Commits

Author SHA1 Message Date
Matthias Ringwald
fd30bf16b2 example/sm_pairing_peripheral: unix line endings, constant value in characteristic 2016-06-10 10:30:12 +02:00
Matthias Ringwald
d7ee901afc example: add sm_pairing_peripheral 2016-06-10 10:21:46 +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
a76f92b3c3 docu: more on le secure connections 2016-06-09 21:36:56 +02:00
Matthias Ringwald
007ef129e6 docu: ENABLE_LE_SECURE_CONNECTIONS. Intro in SM protocol 2016-06-09 17:24:37 +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
65724832b5 examples-le: set BR/EDT not supported Flag in Advertisement for LE only examples 2016-06-07 21:56:18 +02:00
Matthias Ringwald
fc966bd3c6 rfcomm: fix compile 2016-06-07 17:09:12 +02:00
Matthias Ringwald
2a1147c94c rfcomm: return RFCOMM_CHANNEL_ALREADY_REGISTERED if outgoing connection for given server channel already exists 2016-06-07 17:05:24 +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
1890600882 link_key_db: use sizeof to compute buffer size at compile time 2016-06-07 10:05:49 +02:00
Matthias Ringwald
7dd999b710 Merge branch 'develop' of https://github.com/bluekitchen/btstack into develop 2016-06-07 09:58:12 +02:00
Matthias Ringwald
1624665a98 link_key_db: add set_local_bd_addr to be able to store link key pairs (local/remote). Use in posix fs link key db 2016-06-07 09:57:21 +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
7892c5a79a test: enable le secure connections 2016-06-03 16:58:41 +02:00
Milanka Ringwald
287eecff9a example: add void 2016-06-03 15:58:50 +02:00
Milanka Ringwald
0f09bd9698 battery example: add round-robin blacklist for devices that do not have battery service 2016-06-03 15:54:29 +02:00
Milanka Ringwald
969fc1c501 util: fix docu to match function return value 2016-06-03 15:52:59 +02:00
Milanka Ringwald
3e40861c0c util: fix sscanf_bd_addr 2016-06-03 12:06:02 +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
Matthias Ringwald
cfd5ff7427 sm: don't send encryption info for SC 2016-05-31 19:07:47 +02:00
Matthias Ringwald
bbf8db22e4 sm: don't generate rand and LTK in SC 2016-05-31 19:03:44 +02:00
Matthias Ringwald
5829ebe2e7 sm: use LTK from LE Device DB for SC in responder role 2016-05-31 18:39:26 +02:00
Matthias Ringwald
1f9d84e930 sm: fix transition to calculate local confirm in responder role 2016-05-31 17:12:48 +02:00
Matthias Ringwald
07036a0473 sm: wait for passkey entry if neccessarry 2016-05-30 11:01:17 +02:00
Matthias Ringwald
b35a3de2a3 sm: use LE Random for local nonce before confirmation calculation 2016-05-29 20:42:37 +02:00
Matthias Ringwald
f1c1783e41 sm: use LE Random for initiator/jw_nk 2016-05-29 20:22:11 +02:00
Matthias Ringwald
945888f5ea sm: fix local nonce generation 2016-05-29 19:59:02 +02:00
Matthias Ringwald
1c516d8ff1 sm: use fresh nonce for each passkey round 2016-05-29 19:23:10 +02:00
Matthias Ringwald
2886623dc7 sm: fix sc passkey entry in responder role 2016-05-29 19:00:07 +02:00
Matthias Ringwald
7df18c15c3 sm: use LE Random command to generate EC keypair 2016-05-29 16:21:14 +02:00
Matthias Ringwald
901c000fcc sm: use state var to track DHKEY_CHECK_COMMAND received 2016-05-29 14:40:50 +02:00
Matthias Ringwald
bd57ffebb0 sm: use AES CMAC Engine to calculate g2 for numeric comparison 2016-05-28 23:42:47 +02:00
Matthias Ringwald
f92edc8e3a sm: extract g2_calculate 2016-05-28 20:09:19 +02:00
Matthias Ringwald
0346c37cbe sm: use AES CMAC Engine to calculate f5 for dhkey check verification 2016-05-27 23:09:08 +02:00
Matthias Ringwald
019005a057 sm: use AES CMAC Engine to calculate f6 for dhkey check verification 2016-05-27 21:54:28 +02:00