Matthias Ringwald
140b81662c
Merge branch 'develop'
...
HFP/HSP:
- store received audio as wav file
SM:
- send/receive keypress notifications. -> link into docs
- derive BR/EDR Link Key from LE LTK established via LE Secure Connection
- fix use of stored LTKs in all combinations (LE Legacy Paring/LE Secure Connections - Initiator/Responder)
- truncate LTK in LE Secure Connections if established key size is less than 16 bytes
- implement slower elliptic curve multiplication -> less than 800 bytes for 32-bit CPUs
POSIX:
- add le_device_db_fs that stores db at /tmp/btstack_le_device_db.txt as basic csv
2016-06-29 11:18:16 +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
1bf28f67a5
mbedtls: add naive double and add method for ec to safe RAM - used when MBEDTLS_ECP_WINDOW_SIZE == 1
2016-06-29 10:55:40 +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
766515d4f7
test/sm: avoid c++ warning
2016-06-27 16:05:17 +02:00
Matthias Ringwald
9513b6ea90
test/sm: add gap_local_bd_addr
2016-06-27 16:04:27 +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
9ed01c3693
posix: add le_device_db_fs that stores db at /tmp/btstack_le_device_db.txt as basic csv
2016-06-27 15:20:16 +02:00
Matthias Ringwald
b14b15840b
more .gitignore
2016-06-27 15:18:38 +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
02bdfbf8cb
util: implement log_info_key
2016-06-27 14:38:35 +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
55597469a7
gap: extracted gap_store_link_key_for_bd_addr
2016-06-20 12:08:59 +02:00
Matthias Ringwald
4dfd504ad1
sm: sm_cmac_start -> sm_cmac_signed_write
2016-06-20 11:34:56 +02:00
Matthias Ringwald
9d585a824f
tool: make btstack_event_generator independent from cwd
2016-06-20 11:33:49 +02:00
Milanka Ringwald
d7b6902fc1
examples: update target clean in Makefile, add generated file to gitignore
2016-06-16 15:21:28 +02:00
Milanka Ringwald
df327ff315
hfp ag: update choose codec
2016-06-16 15:12:52 +02:00
Milanka Ringwald
db770bf93a
remove printf, update sbc test Makefile
2016-06-16 15:11:45 +02:00
Milanka Ringwald
36985c5260
sbc test: add gitignore file
2016-06-16 15:09:16 +02:00
Milanka Ringwald
df5c73b695
Merge branch 'develop' into a2dp
2016-06-16 14:39:58 +02:00
Matthias Ringwald
9dcc7a0dfc
doc: write about sm keypress notifications in 4.2
2016-06-16 14:31:16 +02:00
Milanka Ringwald
435e3c4e0d
mSBC: extend SBC library for mSBC
2016-06-16 12:36:20 +02:00
Matthias Ringwald
76427ed5d9
sm: drop single event handler
2016-06-16 12:35:03 +02:00
Matthias Ringwald
44e8d9ac69
sm: send/receive keypress notifications
2016-06-16 12:33:16 +02:00
Matthias Ringwald
3d7fe1e922
sm: send/receive keypress notifications
2016-06-16 12:32:12 +02:00
Matthias Ringwald
4a96141edb
examples/sco: show send/received packets
2016-06-16 11:43:40 +02:00
Matthias Ringwald
38b2eaaf74
examples/sco: fix compile for non-sine modes
2016-06-14 17:59:18 +02:00
Matthias Ringwald
8b29cfc66f
examples/sco: write SCO data as wav file to disk
2016-06-14 12:44:29 +02:00
Matthias Ringwald
82aca432ff
example/hfp_hf: process received data via sco_util, too
2016-06-14 12:40:56 +02:00
Matthias Ringwald
116339c5f4
Merge branch 'develop'
...
adding LE Secure Connections
2016-06-10 14:08:32 +02:00
Matthias Ringwald
3cb420dbce
test/ectest: init dh_key - fixing crash
2016-06-10 14:06:18 +02:00
Matthias Ringwald
e9fab07064
test/gatt_client: fix compile
2016-06-10 13:58:25 +02:00
Matthias Ringwald
31c0948871
sm: fix compile without sc
2016-06-10 13:52:12 +02:00
Matthias Ringwald
bba2e72ac5
test: fix security_manager tests
2016-06-10 13:47:11 +02:00
Matthias Ringwald
a3aba2f99a
sm: fix compile
2016-06-10 13:46:47 +02:00
Matthias Ringwald
71c3dc3dd6
sm: add cpp guart around function definition for custom allocator
2016-06-10 13:46:31 +02:00
Matthias Ringwald
e314fd6b1e
Merge branch 'le-secure-connection' into develop
2016-06-10 13:22:15 +02:00
Matthias Ringwald
ac85f41222
docs: improve sc docu
2016-06-10 13:21:40 +02:00
Matthias Ringwald
deb7dd4954
example/spp_and_le_counter: set 'BR/EDR not supported' flag and explain why
2016-06-10 11:13:07 +02:00
Matthias Ringwald
615df10cd8
docs: improve text
2016-06-10 11:06:26 +02:00
Matthias Ringwald
6df11ce093
enable LE_SECURE_CONNECTIONS for larger platforms
2016-06-10 11:04:23 +02:00
Matthias Ringwald
7c485f8b45
example: add sm_pairing_central
2016-06-10 11:03:59 +02:00