Conor Patrick
858545c0c8
Merge pull request #98 from Nitrokey/94-buffer_overread
...
Fix buffer overread in ctap_encode_der_sig()
2019-02-11 21:44:57 -05:00
Conor Patrick
120fb95541
compile for bootloader
2019-02-08 13:09:32 -05:00
Conor Patrick
665e84d183
delay to allow spi interface to initialize
2019-02-08 13:09:12 -05:00
Conor Patrick
13d9885da4
initialize at 16MHz, add 24 and 32 options
2019-02-08 13:08:28 -05:00
Conor Patrick
e230a9464e
enable ctap from usb
2019-02-07 20:09:13 -05:00
Conor Patrick
342af18b1f
initialize ctap
2019-02-07 20:09:00 -05:00
Conor Patrick
be9bd941c8
simplify ams init
2019-02-07 19:45:02 -05:00
Conor Patrick
0f6be6740b
Merge pull request #101 from merlokk/nfc2
...
Nfc2
2019-02-07 19:14:12 -05:00
Conor Patrick
9054736e0e
delete debugging code
2019-02-07 19:03:45 -05:00
merlokk
c6d946136e
small fix
2019-02-07 16:05:08 +02:00
Oleg Moiseenko
32400c8d09
Merge branch 'nfc' into nfc2
2019-02-07 14:49:47 +02:00
Conor Patrick
587c9aad14
refactor
2019-02-06 18:09:53 -05:00
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