329 Commits

Author SHA1 Message Date
Szczepan Zalega
cb13fb65de
Store version in the bootloader. Debug code. 2019-08-24 10:17:43 +02:00
Szczepan Zalega
7fddd58704
Bootloader: get uploaded application version from the 4 last bytes of its firmware 2019-08-24 10:17:40 +02:00
Szczepan Zalega
3a1ea275cc
Move _extra* debug linker scripts content to main 2019-08-24 10:17:37 +02:00
Szczepan Zalega
22293f82f2
Rename flash2 -> flash_cfg 2019-08-24 10:17:34 +02:00
Szczepan Zalega
40c3c13b07
Correct flash2 region. Rename _bconfig_start->bootloader_configuration. 2019-08-24 10:17:30 +02:00
Szczepan Zalega
7042b0b656
Move app version to the end of the firmware code, without specific address. Move bootloader config 8B forward. 2019-08-24 10:17:27 +02:00
Szczepan Zalega
ea803aab95
Make the flash memory structure depend on the APPLICATION_START_PAGE macro 2019-08-24 10:17:24 +02:00
Szczepan Zalega
1100b159a9
Refactor. Add debug code. Use %u for unsigned. Use volatile pointer instead of memory storage. 2019-08-24 10:17:21 +02:00
Szczepan Zalega
9ddba5dfc3
Add extra linker script changes 2019-08-24 10:17:18 +02:00
Szczepan Zalega
35e52f4968
Initial modification to move bootloader data after the application 2019-08-24 10:17:15 +02:00
Szczepan Zalega
efddd2f3a8
Use the same public bootloader key as before 2019-08-24 10:17:12 +02:00
Szczepan Zalega
17ceb7b9e8
Make the public key generic 2019-08-24 10:17:09 +02:00
Szczepan Zalega
188a34d1da
Add missing Makefile entry. Rename pubkey file. 2019-08-24 10:17:05 +02:00
Szczepan Zalega
9248c6462c
Add missing is_newer and pubkey 2019-08-24 10:17:02 +02:00
Szczepan Zalega
beb5a5892c
Add linker scripts 2019-08-24 10:16:56 +02:00
Szczepan Zalega
e4e0a3a84e
Add code responsible for firmware version verification in the bootloader 2019-08-24 10:16:50 +02:00
merlokk
095b08e3d9 add some stability in small responses 2019-08-19 22:33:32 +08:00
merlokk
89e021003a small fix for HID readers 2019-08-19 22:33:32 +08:00
Conor Patrick
3927aec06d dont remove solo.hex bootloader.hex 2019-08-16 14:04:43 +08:00
Conor Patrick
caac9d0cc1 add secure build that uses default attestation key 2019-08-16 14:04:43 +08:00
Conor Patrick
2423154fee fix warning 2019-08-15 18:07:40 +08:00
merlokk
cf79b7865d small fix 2019-08-15 17:50:16 +08:00
merlokk
6f0cf99c92 PPS implementation 2019-08-15 17:50:16 +08:00
Conor Patrick
3be8611fcf remove duplicate from merge 2019-08-15 17:44:09 +08:00
Conor Patrick
21489658a7
Merge branch 'master' into fix_cdc_interfaces 2019-08-15 17:38:57 +08:00
Conor Patrick
a07a3dee8d refactor user_presence handling 2019-08-15 17:36:35 +08:00
Conor Patrick
416da63a9a not for bootloader 2019-08-15 17:36:35 +08:00
Conor Patrick
027fa791a3 only 1 user presence auth per button press 2019-08-15 17:36:35 +08:00
Conor Patrick
3e52d7b42b cache button press for 2s 2019-08-15 17:36:35 +08:00
merlokk
301e18c6a2 add some int0 logic to main cycle 2019-08-14 14:32:03 +08:00
merlokk
44205141eb add one place for int0 2019-08-14 14:32:03 +08:00
merlokk
6e1110ca9b fix bug with ams_wait_for_tx 2019-08-14 14:32:03 +08:00
merlokk
9105b988e2 fix some warnings 2019-08-14 14:32:03 +08:00
Conor Patrick
78280e570b adjust whitespace 2019-08-12 16:18:47 +08:00
Conor Patrick
36aec9f20b separate interface into two and add "IAD" descriptor 2019-08-12 16:18:30 +08:00
Conor Patrick
b5d3276df6 not for bootloader 2019-08-11 18:16:58 +08:00
Conor Patrick
ffd854a303 only 1 user presence auth per button press 2019-08-11 18:05:08 +08:00
Conor Patrick
349a84dcec cache button press for 2s 2019-08-11 17:59:31 +08:00
Conor Patrick
2af747ddaa
Merge pull request #229 from solokeys/fix-hmac-secret
Fix hmac secret
2019-07-27 12:49:30 -04:00
Conor Patrick
df2cff2350 patch hmac final to use correct key 2019-07-26 23:49:55 -04:00
Conor Patrick
303c42901a limit length of wLength 2019-07-15 11:32:02 -04:00
Conor Patrick
9e95b0075c default no serial printing 2019-07-08 21:54:36 -04:00
merlokk
a1eedc0048 small fix 2019-07-06 13:09:19 +03:00
merlokk
89e00482e4 some improvements 2019-07-06 12:52:23 +03:00
merlokk
533ce39237 fix nfc_cc length 2019-07-06 00:15:21 +03:00
merlokk
ed9689435d APDU_FIDO_U2F_VERSION 2019-07-05 12:33:23 +03:00
merlokk
315b6564ab u2f works with extended apdu and now user presence not needs if request come from nfc and power from usb 2019-07-04 23:12:31 +03:00
merlokk
d1df8b8b77 u2f authenticate fix 2019-07-04 19:54:00 +03:00
merlokk
cb76c34ed2 fix addressing 2019-07-04 19:45:09 +03:00
merlokk
f2ebaf6abe invalid cla and r-block works 2019-07-04 19:14:26 +03:00