794 Commits

Author SHA1 Message Date
Conor Patrick
ce96fffddd add info to authData for ext reqs 2019-04-23 21:57:27 -04:00
Conor Patrick
4fb25e165a remove old web assets 2019-04-23 21:15:11 -04:00
Conor Patrick
8fc0da7934 move args to device_init 2019-04-23 21:12:40 -04:00
Conor Patrick
494e856198
Merge pull request #131 from rgerganov/hidg
Add support for hidg devices on Linux
2019-04-23 20:22:33 -04:00
Conor Patrick
472b094acb bump 2019-04-23 20:21:19 -04:00
Conor Patrick
e0ce23034f
Merge pull request #180 from solokeys/test_pin_fixes
Test pin fixes
2019-04-23 19:58:44 -04:00
Conor Patrick
5f3974a4e6
Merge pull request #182 from solokeys/nfc_adjustments
Nfc adjustments
2.2.1
2019-04-23 19:42:14 -04:00
Conor Patrick
26adac1730 size optimize tinycbor 2019-04-23 19:17:18 -04:00
Conor Patrick
eab8b81c95 include nfc in user presence test 2019-04-23 14:05:18 -04:00
Conor Patrick
325396d518 dont change clock freq if powered 2019-04-23 13:54:23 -04:00
Conor Patrick
6d04c86018 update lowFreq flag correctly 2019-04-23 13:54:10 -04:00
Conor Patrick
56d6624e4e Test correct alg parameter #179 2019-04-22 16:26:26 -04:00
Conor Patrick
3094c87b0a Test empty pinAuth in MC and GA #179 2019-04-22 16:25:08 -04:00
Conor Patrick
212f98e384
Merge pull request #179 from agl/pinfixes
Couple of fixes for PIN support
2019-04-22 16:11:34 -04:00
Adam Langley
73f538dd0e Fix COSE type of key-agreement keys.
The key-agreement keys in the PIN protocol use COSE type -25. I'm not
sure if that's written down anywhere, but it's what everything else does
and it's an ECDH type rather than an ECDSA type.
2019-04-20 16:45:04 -07:00
Adam Langley
a5f794c0ff Handle empty pinAuth fields.
CTAP2 specifies that an empty pinAuth field is special: it indicates
that the device should block for touch, i.e. it's just a way of letting
a user select from multiple authenticators[1].

This change handles empty pinAuth fields in GetAssertion and
MakeCredential commands.

[1] https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#using-pinToken-in-authenticatorMakeCredential
2019-04-20 16:26:32 -07:00
Conor Patrick
f28cf9c6d0 new release 2019-04-18 20:41:18 -07:00
Conor Patrick
6068fb9868
Merge pull request #173 from solokeys/fix_u2f_on_fido2
Fix u2f on fido2
2.2.0
2019-04-17 22:42:38 -04:00
Nicolas Stalder
6a288243c1 Add Makefile for installing a HID gadget
The Makefile has targets for building, installing and uninstalling a HID
gadget which acts as FIDO2 authenticator.

Tested on Ubuntu 18.04 but should work on other distros as well. The
only assumption being made is that kernel source is available at
/usr/src/linux-source-$(KERNEL_VERSION).tar.bz2. A possible improvement
would be to have a configure script which finds the correct kernel
source archive.
2019-04-16 10:54:49 +03:00
Radoslav Gerganov
955d4f76ef Add support for hidg devices on Linux
There is a HID gadget driver on Linux which provides emulation of USB
HID devices. This could be very useful for testing the Solo firmware
without actual hardware, using only a Linux box.

This patch adds a command line argument which specifies whether the
existing UDP backing should be used or the new one which reads and
writes to /dev/hidg0.

Testing done:
 1. Created HID device with configfs
 2. Started "./main -b hidg" as root
 3. Successfully executed Webauthn registration and authentication on
 the same Linux machine

Closes: #122
2019-04-16 10:54:46 +03:00
Conor Patrick
74cbe00e3b Enable debug logs for >0 2019-04-14 15:13:39 -04:00
Conor Patrick
7e490f17fc delete 2019-04-13 22:42:16 -04:00
Conor Patrick
9bb706987f solo ext bugfix 2019-04-13 22:42:05 -04:00
Conor Patrick
88a759566d Improve testing 2019-04-13 22:37:47 -04:00
Conor Patrick
44fa3bbb8e Add checks to use U2F key if necessary 2019-04-13 22:37:31 -04:00
Conor Patrick
89e9296825 Add test 2019-04-13 20:43:26 -04:00
Conor Patrick
873d65b823
Merge pull request #172 from StoyanDimitrov/patch-1
Improve readability of code filenames
2019-04-13 11:54:55 -04:00
StoyanDimitrov
eb8e3ed46a
Improve readability of code filenames 2019-04-13 15:31:35 +00:00
Conor Patrick
8b97276e32
Merge pull request #171 from solokeys/fix_cbor
Fix cbor
2019-04-12 12:04:01 -04:00
Conor Patrick
78579c27dc Refactor and self test the CBOR sorting 2019-04-11 13:42:17 -04:00
Conor Patrick
ca80329b4c Compare string length and sort from start of string 2019-04-11 13:22:55 -04:00
Conor Patrick
7a49169492 consider major type and refactor 2019-04-11 00:04:33 -04:00
Conor Patrick
46dd4fe818 unused import 2019-04-10 13:56:23 -04:00
Conor Patrick
c71bbd8689 re-enable all tests 2019-04-10 13:42:38 -04:00
Conor Patrick
7068be9cd5 reorder options 2019-04-10 13:13:38 -04:00
Conor Patrick
f8635f1682 refactor tests 2019-04-10 13:12:33 -04:00
Conor Patrick
ffa9ad4923 refactor cbor sorting test 2019-04-10 12:47:39 -04:00
Conor Patrick
5fc8d214fd remove add_user param 2019-04-10 12:47:23 -04:00
Conor Patrick
5f49f4680e re-order items in get_assertion response 2019-04-10 12:22:35 -04:00
Conor Patrick
86393c46b4 Test it is correct 2019-04-10 12:11:43 -04:00
Conor Patrick
4cc72bcd97 rearrange cbor encoding order in make_credential and get_info 2019-04-10 12:11:31 -04:00
Nicolas Stalder
5e0edf3e11
Update index.md 2019-04-06 21:45:51 +02:00
Nicolas Stalder
bd810fff87
Merge pull request #165 from ehershey/patch-3
More docs fixups
2019-04-06 21:41:19 +02:00
Nicolas Stalder
d9fb508949
Merge pull request #166 from ehershey/patch-2
include markdown-include mkdocs dependency
2019-04-06 21:40:13 +02:00
Ernie Hershey
c2b7acb6aa
include markdown-include mkdocs dependency 2019-04-06 15:29:16 -04:00
Ernie Hershey
4690a7ce65
More docs fixups 2019-04-06 13:50:51 -04:00
Conor Patrick
61f24d142d
Merge pull request #163 from ehershey/patch-1
link to readme and reference TC in docs start page
2019-04-06 13:41:54 -04:00
Conor Patrick
f5c6f99423
Merge pull request #164 from ehershey/patch-2
Docs fixups
2019-04-06 13:40:51 -04:00
Ernie Hershey
96de4f0850
Docs fixups
Spelling, grammar
2019-04-06 13:28:16 -04:00
Ernie Hershey
331ebdfccf
link to readme and reference TC in docs start page 2019-04-06 13:20:10 -04:00