5646 Commits

Author SHA1 Message Date
Matthias Ringwald
dc30084780 sm: prepare dhkey check to use AES CMAC Engine 2016-05-27 21:06:16 +02:00
Matthias Ringwald
e083ca230a sm: extract sm_sc_calculate_dhkey 2016-05-27 20:23:45 +02:00
Matthias Ringwald
b042cbd999 Merge branch 'le-secure-connection' of https://github.com/bluekitchen/btstack into le-secure-connection 2016-05-27 20:02:56 +02:00
Matthias Ringwald
688a08f9c2 sm: use AES Engine for f4 (confirm validation) 2016-05-27 18:57:59 +02:00
Matthias Ringwald
aec9414068 sm: use AES Engine for f4 2016-05-27 18:01:39 +02:00
Matthias Ringwald
9af0f475f6 sm: extract sm_sc_calculate_local_confirm 2016-05-27 17:26:02 +02:00
Matthias Ringwald
514d35fc5d sm: add sm_cmac_general_start for aes_cmac calculation in secure connection functions 2016-05-27 16:40:53 +02:00
Matthias Ringwald
74c92e7149 test/sm: added cmac signing test 2016-05-27 16:40:53 +02:00
Matthias Ringwald
b6a6a351f8 test/sm: extract aes_cmac implementation 2016-05-27 16:40:53 +02:00
Matthias Ringwald
c6b7cbd9f9 sm: use SM_SC_ for SC states 2016-05-27 16:40:53 +02:00
Matthias Ringwald
5a293e6e96 sm: verify confirm value with passkey entry in responder role 2016-05-27 16:40:53 +02:00
Matthias Ringwald
de2fd182e5 sm: send 'numeric comparison failed' on decline by app 2016-05-27 16:40:53 +02:00
Matthias Ringwald
a9f2976821 sm: validate peer DHKey Check value 2016-05-27 16:40:53 +02:00
Matthias Ringwald
6f52a19684 sm: validate Cb during passkey modes 2016-05-27 16:40:53 +02:00
Matthias Ringwald
b7674abee2 sm: validate Cb during just works/numeric comparison 2016-05-27 16:40:53 +02:00
Matthias Ringwald
625f00b244 sm: don't calc random numbers for legacy pairing key distribution when using secure connections 2016-05-27 16:40:53 +02:00
Matthias Ringwald
a1e31e9cdc sm: passkey entry for secure connections in initiator role 2016-05-27 16:40:53 +02:00
Matthias Ringwald
a068cdf483 tool: state_enums.sh enumerates SM and RFCOMM states 2016-05-27 16:40:53 +02:00
Matthias Ringwald
8cba5ca323 sm: numeric comparison for secure connections in initiator role 2016-05-27 16:40:53 +02:00
Matthias Ringwald
136d331afb sm: just works for secure connections in initiator role 2016-05-27 16:40:53 +02:00
Matthias Ringwald
83b3ae5f87 sm: auto confirm pairing in gap_le_connect_to_1111 example 2016-05-27 16:40:53 +02:00
Matthias Ringwald
e88b296181 sm: keep track of security request before sm received connection complete 2016-05-27 16:40:53 +02:00
Matthias Ringwald
7cef8eada7 libusb: add gap_le_connect_to_1111 example for testing outgoing le secure connection pairing 2016-05-27 16:40:53 +02:00
Matthias Ringwald
bccf5e67f5 sm: verify peer Q lies on elliptic curve 2016-05-27 16:40:53 +02:00
Matthias Ringwald
c8c46d5108 sm: add sm_numeric_comparison_confirm(..) and use in le_counter 2016-05-27 16:40:53 +02:00
Matthias Ringwald
8362d86ace sm: add SM_EVENT_NUMERIC_COMPARISON_REQUEST and SM_EVENT_NUMERIC_COMPARISON_CANCEL events for Numeric Comparison 2016-05-27 16:40:53 +02:00
Matthias Ringwald
b434342875 sm: add SM_STK_GENERATION_METHOD_NUMERIC_COMPARISON 2016-05-27 16:40:53 +02:00
Matthias Ringwald
52f9cf635b sm: clear requests for Encryption Key distribution when using SC 2016-05-27 16:40:53 +02:00
Matthias Ringwald
45a61d50fd sm: support SC Passkey Entry 2016-05-27 16:40:53 +02:00
Matthias Ringwald
446a8c36fb sm: support Numeric Comparison 2016-05-27 16:40:53 +02:00
Matthias Ringwald
c040243fc3 test/sm: fix g2 calculation 2016-05-27 16:40:53 +02:00
Matthias Ringwald
e53be89155 sm: calculate DHKey, LTK, and DHKey Check values. Require only Encryption in example 2016-05-27 16:40:53 +02:00
Matthias Ringwald
27c32905a3 sm: answer public key command in responder role 2016-05-27 16:40:53 +02:00
Matthias Ringwald
faccbb295e example: add characteristic that requires authentication, requrest le secure connecions 2016-05-27 16:40:53 +02:00
Matthias Ringwald
74a9b3d5e1 add sm pdus for ecdh 2016-05-27 16:40:53 +02:00
Matthias Ringwald
cc7a2d7835 util: add reverse_256 2016-05-27 16:40:53 +02:00
Matthias Ringwald
c4771b509f test/sm: add missing mbedtls files 2016-05-27 16:40:53 +02:00
Matthias Ringwald
5d1a0b5570 test/sm: generate ec keypair. remove files not needed for software ec calculation 2016-05-27 16:40:53 +02:00
Matthias Ringwald
cd4b45e272 test/sm: try nist p256r1 ec 2016-05-27 16:40:53 +02:00
Matthias Ringwald
4243f62ef6 test/sm: implement h6 2016-05-27 16:40:53 +02:00
Matthias Ringwald
6bea6160f4 test/sm: implement g2 2016-05-27 16:40:53 +02:00
Matthias Ringwald
4f55d09f61 test/sm: implement f6 2016-05-27 16:40:53 +02:00
Matthias Ringwald
2fde466246 test/sm: implement f5 2016-05-27 16:40:53 +02:00
Matthias Ringwald
587b3d906a test/sm: implement f4 2016-05-27 16:40:53 +02:00
Matthias Ringwald
94d1976d90 test/sm: re-implemented aes_cmac using software AES 2016-05-27 16:40:53 +02:00
Matthias Ringwald
4f4918761b mbedtls: disable unused elliptic curves 2016-05-27 16:40:53 +02:00
Matthias Ringwald
21931e38aa sm: add ecliptic curve support from mbedtls 2016-05-27 16:40:53 +02:00
Matthias Ringwald
10355e4f1a sm: don't calc random numbers for legacy pairing key distribution when using secure connections 2016-05-26 12:42:48 +02:00
Matthias Ringwald
47c65c64aa sm: passkey entry for secure connections in initiator role 2016-05-26 12:26:34 +02:00
Matthias Ringwald
122e257637 tool: state_enums.sh enumerates SM and RFCOMM states 2016-05-26 11:23:44 +02:00