44 Commits

Author SHA1 Message Date
Matthias Ringwald
9305033e02 MISRAC2012-Rule-14.4_c: compare against 0 or NULL 2021-02-01 15:15:55 +01:00
Matthias Ringwald
9bc5a72f58 btstack_crypto: clear wait for hci result flag, fixes power off if rand was used last 2021-01-25 22:41:17 +01:00
Matthias Ringwald
172c13e70a btstack_crypto: support de-init 2021-01-18 21:34:37 +01:00
Matthias Ringwald
7ab974d945 btstack_crypto: assert if software ECC is not used but controller does not support ECDH operations 2020-11-16 18:57:52 +01:00
Matthias Ringwald
4ea43905e8 MISRAC2012-Rule-10.4_a: append 'u' to constant literals when used in unsigned expressions or comparisons 2020-07-23 12:36:33 +02:00
Matthias Ringwald
6fb5f0b5d6 btstack_crypto: use extracted btstack_crypto_ccm_handle_sn for btstack_crypto_ccm_calc_sn 2020-07-03 16:00:21 +02:00
Matthias Ringwald
547f262d73 btstack_crypto: extra handling of aes128 results for use with controller and software aes128 2020-07-03 11:33:14 +02:00
Matthias Ringwald
8a2f4bb52f btstack_crypto: implement AES-CCM with software AES128 2020-07-03 11:33:14 +02:00
Matthias Ringwald
0d1523fec6 fix warnings 2020-05-14 14:41:17 +02:00
Matthias Ringwald
08c7954571 btstack_crypto: avoid c++ style for loop init 2020-01-15 16:41:38 +01:00
Matthias Ringwald
8e361704e5 btstack_crypto: change aes_cmac to access all message bytes sequentially 2020-01-09 22:20:41 +01:00
Matthias Ringwald
c5d6cafb93 btstack_crypto: use software aes128 for cmac generator [a2474] 2019-12-08 21:39:11 +01:00
Matthias Ringwald
d8fc648c51 btstack_crypto: use software aes128 for cmac message [a2473] 2019-12-08 21:38:41 +01:00
Matthias Ringwald
cfbd0db491 btstack_crypto: use rijndael aes128 if ENABLE_SOFTWARE_AES128 [a2472] 2019-12-07 22:34:47 +01:00
Matthias Ringwald
ff3cc4a537 MISRAC2012-Rule-14.4_d: use while(true) instead of while(1) 2019-12-03 12:52:10 +01:00
Matthias Ringwald
6535961a1f ignore memcpy return value (always returns first parameter) 2019-12-02 18:17:20 +01:00
Matthias Ringwald
0e588213fd MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 15:48:31 +01:00
Matthias Ringwald
c1ab6cc1be MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:31:48 +01:00
Matthias Ringwald
a512579c63 btstack_crypto: spell out min operation for c-stat 2019-11-15 17:06:18 +01:00
Matthias Ringwald
cebe3e9ef6 fix compile warnings (unused param, signed / unsigned comparison) 2019-10-30 15:34:08 +01:00
Matthias Ringwald
fde19096d3 mesh: improve _reset functions for unit tests in mesh_network and btstack_crypto 2019-08-20 18:07:43 +02:00
Matthias Ringwald
e2424d4022 btstack_crypto: fix warning for btstack_crypto_ecc_p256_set_key which is only usable with software ecc 2019-07-20 16:00:48 +02:00
Matthias Ringwald
80665fb721 btstack_crypto: add btstack_crypto_idle for unit testing 2019-07-20 08:50:24 +02:00
Matthias Ringwald
1fbe4564be restart mesh development based on current develop and existing mesh branches 2019-07-20 08:50:21 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Matthias Ringwald
4412fefaeb crypto: handle encryption and random results from controller during shutdown 2019-02-07 08:41:38 +01:00
Matthias Ringwald
0c23bea1f5 crypto: fix lockup when stack is shutdown while waiting for result of HCI Command, e.g. LE Read Local P256 Public Key 2019-02-05 17:23:51 +01:00
Matthias Ringwald
5db50aaad5 btstack_crypto: directly process queued crypto operation on HCI result 2019-01-29 11:20:15 +01:00
Matthias Ringwald
23b7e05eef btstack_crypto: remove printfs 2019-01-14 21:23:31 +01:00
Matthias Ringwald
03843d749b btstack_crypto: fix typo in ccm functions 2019-01-12 23:15:46 +01:00
Matthias Ringwald
f88ad41f77 btstack_crypto/aes-ccm: add support for Additional Authenticated Data (AAD) 2019-01-12 22:19:02 +01:00
Matthias Ringwald
10e0e23cd2 btstack_crypto: use auth_len for btstack_crypo_ccm_get_authentication_value 2018-10-29 22:37:03 +01:00
Matthias Ringwald
89be578cb9 btstack_crypto: fix encrypt/decrypt with block_len > 16 2018-10-29 21:46:40 +01:00
Matthias Ringwald
577fe4df16 btstack_crypto: finish CCM, add debug output 2018-10-26 17:20:46 +02:00
Matthias Ringwald
6015e1edc2 btstack_crypto: provide auth_len for ccm init 2018-10-26 13:57:03 +02:00
Matthias Ringwald
e0449ce9c9 btstack_crypto: let btstack_crypto_ecc_p256_generate_key generate new key if called again 2018-10-25 14:57:13 +02:00
Matthias Ringwald
4395a00033 fix warnings: missing cast, unreachable code 2018-10-05 10:53:00 +02:00
Matthias Ringwald
ddd7eb8cef btstack_crypto: improve warning 2018-08-24 10:56:24 +02:00
Matthias Ringwald
0b672f4399 btstack_crypto: fix compile for mbedTLS 2018-08-22 16:53:22 +02:00
Matthias Ringwald
59ab165553 btstack_crypto: avoid anonymous union 2018-07-05 23:15:48 +02:00
Matthias Ringwald
ea478a8375 btstack_crypto: avoid compile warnings for unimplemented CCM operations with HAVE_AES128 defined 2018-06-13 09:21:09 +02:00
Matthias Ringwald
7909a4147e btstack_crypto: fix compile error for HAVE_AES128. Fix suggested by Venkat Subbiah <vsubbiah@packetp.com> 2018-06-13 09:18:39 +02:00
Matthias Ringwald
eedf4e5193 crypto: remove unused var 2018-04-19 15:10:53 +02:00
Matthias Ringwald
d1a1f6a4cf sm: use btstack_crypto (lifted from btstack-crypto branch) 2018-04-04 15:53:01 +02:00