699 Commits

Author SHA1 Message Date
Conor Patrick
c624a32ef6 default 8 thread build 2019-02-06 18:07:38 -05:00
Conor Patrick
3005a63938 re-arrange some logic for better passive operation 2019-02-06 18:07:09 -05:00
Conor Patrick
f470e9a9cd dont need to init clock at first in bootloader 2019-02-06 18:05:22 -05:00
Conor Patrick
e3971a5e0f change ams init, read less regs 2019-02-06 17:56:53 -05:00
Conor Patrick
2ed8667f18 immedately change clock rate to load data sections faster 2019-02-06 17:55:27 -05:00
Conor Patrick
765d532f82 add low freq clocking options 4,8,16MHz 2019-02-06 17:54:52 -05:00
merlokk
ca05385513 log fixing 2019-02-06 20:06:46 +02:00
merlokk
5328610ff1 delete debug messages 2019-02-06 19:51:32 +02:00
merlokk
bc1bb3509f move APDU dumps to separate log channel 2019-02-06 19:21:06 +02:00
merlokk
375db69e3a fido2 works 2019-02-06 19:06:49 +02:00
merlokk
771fffe329 WTX works. todo: clean debug unneeded messages 2019-02-06 17:12:22 +02:00
merlokk
4611f05051 small fix in AMS3956 debug texts 2019-02-06 15:17:52 +02:00
merlokk
e657e26886 check AMS product type 2019-02-06 15:15:37 +02:00
merlokk
3ffcc47374 fix logger 2019-02-06 14:11:49 +02:00
Nicolas Stalder
102f2f261b better capitalisation 2019-02-03 02:27:25 +01:00
Nicolas Stalder
24d8abf820 add an .envrc for those using direnv 2019-02-03 02:21:50 +01:00
Szczepan Zalega
449faea7d3
Fix buffer overread in ctap_encode_der_sig()
Take into account leading zeroes in the size to copy, for both R and S
ingredients of the signature.
Issue was occuring only in cases, when there was a leading zero for the
S part.

Refactor ctap_encode_der_sig():
- add in_ and out_ prefixes to the function arguments
- mark pointers const
- clear out buffer

Tested via simulated device on:
- Fedora 29
- gcc (GCC) 8.2.1 20181215 (Red Hat 8.2.1-6)
- libasan 8.2.1 / 6.fc29
(same machine, as in the related issue description)
by running ctap_test() Python test in a loop for 20 minutes (dev's
counter 400k+). Earlier issue was occuring in first minutes.

Tested on Nucleo32 board, by running the ctap_test() 20 times.

Fixes https://github.com/solokeys/solo/issues/94

Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-02-02 18:33:10 +01:00
Conor Patrick
1b5e230d45 merge u2f endian fix 2019-02-02 00:32:36 -05:00
Conor Patrick
81a89ed6aa go back to high freq 2019-02-02 00:29:32 -05:00
Conor Patrick
ca2074de36 Update Makefile 2019-02-02 00:25:01 -05:00
Conor Patrick
ee98340a03 temporarily remove prints at start 2019-02-02 00:24:42 -05:00
Conor Patrick
3d0d91fa5c lf param 2019-02-02 00:24:11 -05:00
Conor Patrick
38171dba06 low freq init 2019-02-02 00:23:51 -05:00
Conor Patrick
4ba57ccc85 refactor init functions 2019-02-02 00:23:01 -05:00
Conor Patrick
c3bddee814 dont do this when powered by nfc 2019-02-02 00:21:26 -05:00
Conor Patrick
b7bc50bc4f
Merge pull request #96 from merlokk/nfc2
small fixes in NFC branch
2019-02-02 00:16:07 -05:00
merlokk
19627a959a some TODOs 2019-02-01 21:35:45 +02:00
merlokk
429e4b2a77 add WTX_clear(); 2019-02-01 21:33:57 +02:00
merlokk
6e5de7bd6b read data if we sent WTX 2019-02-01 21:31:20 +02:00
merlokk
c6daa4acc9 more WTX sketch 2019-02-01 21:27:43 +02:00
merlokk
ab01d0c73d delete comment 2019-02-01 21:02:02 +02:00
merlokk
0ef42b2df7 added WTX sending sketch 2019-02-01 20:45:36 +02:00
merlokk
f6e2bfa683 yubikey answers U2F_SW_WRONG_PAYLOAD instead of U2F_SW_WRONG_DATA 2019-02-01 20:06:19 +02:00
merlokk
5c8acdd666 fix u2f user presence check, added dont-enforce-user-presence-and-sign, fix counter 2019-02-01 20:00:13 +02:00
merlokk
e996d470f9 small fixes 2019-02-01 19:15:48 +02:00
Paolo Smiraglia
4c36a752cb Fix vendor and product id 2019-01-31 02:56:42 +01:00
Conor Patrick
e2e29492e6 point to website 2019-01-29 22:39:49 -05:00
Conor Patrick
5f637992b1 implement capability container and ndef tag to work with nexus 6 2019-01-29 22:12:38 -05:00
Conor Patrick
91d092a27a tell AMS to go to sleep if deselected 2019-01-27 23:55:11 -05:00
Conor Patrick
23cbfde312
Merge pull request #88 from merlokk/nfc
merging so I can test out in my branch
2019-01-27 21:11:57 -05:00
merlokk
cce25b2a1c u2f auth works 2019-01-28 00:04:17 +02:00
merlokk
f24058d2e8 u2f authenticate wrong length fix 2019-01-27 23:58:35 +02:00
merlokk
4c941997b4 check as3956 on startup 2019-01-27 23:35:20 +02:00
Nicolas Stalder
37f1790028 Add metadata statements and include in documentation 2019-01-27 20:08:15 +01:00
Nicolas Stalder
91066292ae move fido2-impl.md 2019-01-27 19:57:48 +01:00
Conor Patrick
1ffe85f083 update attestation verification 2019-01-27 11:18:50 -05:00
merlokk
2049020b92 refactoring 2019-01-27 11:44:33 +02:00
Conor Patrick
7a6abdfd0c add command to verify SoloKeys attestation cert 2019-01-26 18:06:01 -05:00
Conor Patrick
ff4cb32bc3 Update solotool.py 2019-01-26 17:15:40 -05:00
merlokk
1857482617 add some len check 2019-01-27 00:01:04 +02:00