43 Commits

Author SHA1 Message Date
matthias.ringwald@gmail.com
c64f33c72c add printf when app should display/hide passkey 2013-11-28 21:17:20 +00:00
matthias.ringwald@gmail.com
6585cf39bf generate passkey 0-999999 if we need to display it 2013-11-28 21:13:49 +00:00
matthias.ringwald@gmail.com
1bebac1147 implement stk generation method decision 2013-11-28 20:19:21 +00:00
matthias.ringwald@gmail.com
98dc099930 only use OOB if initiator also indicates that it has OOB data 2013-11-28 15:50:00 +00:00
matthias.ringwald@gmail.com
03435b99d8 added 'get oob data' callback support 2013-11-28 15:34:11 +00:00
matthias.ringwald@gmail.com
1573cd5f74 move key distribution into explicit state, use state for send security request and send pairing failed 2013-11-16 22:49:43 +00:00
matthias.ringwald@gmail.com
fb0d10171a use state for send pairing failed 2013-11-16 22:35:25 +00:00
matthias.ringwald@gmail.com
09e2372ddd add state for sending pairing response and remove generic response buffer 2013-11-16 22:29:08 +00:00
matthias.ringwald@gmail.com
d0cd2e022f add swap64, extract swapX, fix endianess for all keys used in SM PDUs 2013-11-16 22:17:17 +00:00
matthias.ringwald@gmail.com
6d9fe37763 also calculate IRK during bonding 2013-11-16 21:32:57 +00:00
matthias.ringwald@gmail.com
e2b20dde9e use print_key and print_hex16, move code not needed for final aes128 engine toward the end 2013-11-12 23:22:31 +00:00
matthias.ringwald@gmail.com
0d64013b1f use aes128 engine for setup of previously established ltk and ediv 2013-11-12 23:01:05 +00:00
matthias.ringwald@gmail.com
d09da6b9a8 use aes128 engine for dhk, y, ediv, ltk calculation after bonding 2013-11-12 22:36:13 +00:00
matthias.ringwald@gmail.com
0573ccc143 calc s1 using aes128 engine 2013-11-12 19:41:31 +00:00
matthias.ringwald@gmail.com
70ddf9cf63 use aes128 engine for c1 calculation of master and slave 2013-11-11 23:11:16 +00:00
matthias.ringwald@gmail.com
63dbd537f8 use aes128 engine to calculat sm_s_confirm 2013-11-11 22:47:28 +00:00
matthias.ringwald@gmail.com
9168dfeb6e extract sm_c1_t3 in preparation to use AES128 engine 2013-11-11 21:45:29 +00:00
matthias.ringwald@gmail.com
eb71d41a8d extract sm_c1_t1 in preparation to use AES128 engine 2013-11-11 21:38:07 +00:00
matthias.ringwald@gmail.com
552dcccdf8 remove unused le_rand command 2013-11-11 21:08:37 +00:00
matthias.ringwald@gmail.com
fceccb23c6 sm_s1 returns big endian, too 2013-11-10 00:08:52 +00:00
matthias.ringwald@gmail.com
bca65ea822 adapt sm_s1 to use big endian r1 and r2 2013-11-09 23:52:17 +00:00
matthias.ringwald@gmail.com
45c3b63f47 store m/s_random as big endian 2013-11-09 23:31:39 +00:00
matthias.ringwald@gmail.com
125e483a63 sort endianess in sm_c1 2013-11-09 23:20:11 +00:00
matthias.ringwald@gmail.com
311a7e6675 basic pairing with key distribution and reconnects mostly works 2013-11-09 22:14:32 +00:00
matthias.ringwald@gmail.com
07b7ce8880 implemented all security mangager crypto functions 2013-11-09 19:59:05 +00:00
matthias.ringwald@gmail.com
c686dfc823 added diversification function d1 2013-11-08 21:12:51 +00:00
matthias.ringwald@gmail.com
dadf87d336 calculate and send s_confirm 2013-11-08 15:31:09 +00:00
matthias.ringwald@gmail.com
0e1aa0ece6 validate m_confirm 2013-11-08 15:18:45 +00:00
matthias.ringwald@gmail.com
3eaa957fae added second test for confirm value, correct calculation of Mconfirm 2013-11-08 14:40:49 +00:00
matthias.ringwald@gmail.com
691fc7bb7d start calculation Srandom 2013-11-01 21:50:43 +00:00
matthias.ringwald@gmail.com
ebf961b51d added sm_c1 for confirm value 2013-11-01 17:54:33 +00:00
matthias.ringwald@gmail.com
e666cc4e4b only send keys requested by initiator 2013-11-01 15:31:00 +00:00
matthias.ringwald@gmail.com
66d168a2a3 working test code for BLE bonding 2013-11-01 14:07:59 +00:00
matthias.ringwald@gmail.com
28e59aaa2f remove set_advertisement_parameters call as defaults are fine 2013-10-17 14:52:10 +00:00
matthias.ringwald@gmail.com
24052c2afd move common LE init code into hci.c 2013-10-17 14:45:43 +00:00
matthias.ringwald@gmail.com
2ca4f19755 don't need to be Classic discoverable 2013-10-17 13:35:43 +00:00
matthias.ringwald@gmail.com
2ed9ac63e2 remove debug code 2013-10-17 13:34:57 +00:00
matthias.ringwald@gmail.com
c624031354 LE Set Event Mask not necessary as default includes all current 4.0 LE events 2013-10-17 13:27:04 +00:00
matthias.ringwald@gmail.com
cac78adf23 don't list BD ADDR in client 2013-10-17 13:23:33 +00:00
matthias.ringwald@gmail.com
6c27bd5656 removed informational LE command 2013-10-17 13:23:09 +00:00
matthias.ringwald@gmail.com
5c3b5f6339 LE is independent of scan mode 2013-10-17 13:22:20 +00:00
matthias.ringwald@gmail.com
75b4335b82 remove HCI commands already send by hci.c 2013-10-17 13:06:43 +00:00
matthias.ringwald@gmail.com
1fb869a41a ported ble_server example to libusb 2013-10-17 12:42:18 +00:00