Wykres commitów

288 Commity (master)

Autor SHA1 Wiadomość Data
Conor Patrick c482d6cc74 typo 2019-02-12 20:52:03 -05:00
yparitcher 2cb96cb793
fix typo 2019-02-12 20:47:28 -05:00
Conor Patrick 831976f3a2 replace macros with DEBUG_LEVEL aware timestamp function 2019-02-12 20:28:48 -05:00
yparitcher 1dd835d698
add -Wextra: further code cleanup
please fix Wno-unused-parameter -Wno-missing-field-initializers in the future
2019-02-12 18:22:03 -05:00
yparitcher 400b37a96a
clean up build: GCC warnings 2019-02-12 18:19:38 -05:00
Conor Patrick 894f6f7ee1
Merge branch 'master' into license-change 2019-02-12 17:47:28 -05:00
Conor Patrick ed676151f1 update license to apache2 + mit 2019-02-12 17:18:17 -05:00
Conor Patrick 6c23532f08 use 3-byte version 2019-02-12 16:37:32 -05:00
Conor Patrick ba4f9ed7ae bug fix 2019-02-12 15:00:01 -05:00
Conor Patrick eb2d377ffb add extension to solo to get version and RNG 2019-02-12 14:00:05 -05:00
Conor Patrick 2893cd7ce3 move inits to device_init 2019-02-11 22:00:18 -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
Oleg Moiseenko 32400c8d09
Merge branch 'nfc' into nfc2 2019-02-07 14:49:47 +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
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 ee98340a03 temporarily remove prints at start 2019-02-02 00:24:42 -05: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 cce25b2a1c u2f auth works 2019-01-28 00:04:17 +02:00
merlokk 4c941997b4 check as3956 on startup 2019-01-27 23:35:20 +02:00
merlokk 2049020b92 refactoring 2019-01-27 11:44:33 +02:00
merlokk 3eddfbf8a9 u2f register works 2019-01-26 23:44:51 +02:00
Conor Patrick 302ce75ce6 responds to RATS correctly 2019-01-12 20:20:47 -05:00
Conor Patrick 62cd7cc728 enable energy harvesting and tunneling in eeprom 2019-01-12 16:20:11 -05:00
Conor Patrick 9ff52fcdb4 Update u2f.c 2019-01-08 21:37:15 -05:00
Conor Patrick 121070822f Update main.c 2019-01-07 21:20:07 -05:00
Conor Patrick 78c40976c3 log interrupts and recv'd data 2019-01-07 21:19:45 -05:00
Conor Patrick c330346c31 add nfc log tag 2019-01-07 18:29:38 -05:00
Conor Patrick 3d9dd08208 non-c99 compatibility 2019-01-05 19:42:28 -05:00
Emanuele Cesena bbc61d5743 New README and license 2018-12-16 16:19:40 -08:00
Conor Patrick 5dd3355bd8 add wink command 2018-12-08 20:37:30 -05:00
Conor Patrick 15a1fb1e5b fix pc build 2018-12-06 23:48:46 -05:00
Conor Patrick 1a07b4a73a add rng command 2018-12-05 19:35:22 -05:00
Conor Patrick 5a636d1ebe boot directly st bootlaoder 2018-12-04 19:14:11 -05:00
Conor Patrick 97b715881b boot directly to solo bootloader for solo hacker 2018-12-04 01:30:53 -05:00
Conor Patrick b0cc9cf582 program using just hid protocol, quicker 2018-12-04 00:15:58 -05:00
Conor Patrick 5a96e82f4d python script for progamming via solo bootloader 2018-12-03 23:01:51 -05:00
Conor Patrick 9b4b18e1a4 more configurable led 2018-12-03 20:30:35 -05:00
Conor Patrick e107a9aa86 refactor 2018-12-03 20:06:44 -05:00
Conor Patrick aece05b2e8 remove dead code 2018-12-03 00:14:26 -05:00
Conor Patrick eb39e0f2c4 reboot and pass tests 2018-12-03 00:01:41 -05:00
Conor Patrick bfa2d2830d signed update working 2018-12-02 23:31:34 -05:00
Conor Patrick 9ff5dc6373 bug fixes, now it boots application 2018-12-02 20:30:28 -05:00
Conor Patrick ac7950f4c4 remove printf references, add bootloader script, merge hex files 2018-12-01 17:10:49 -05:00
Conor Patrick 93d4112bc3 bootloader compiles 2018-12-01 14:42:49 -05:00
Conor Patrick ff682d6b5e remove debug statements 2018-11-23 11:50:51 -05:00
Conor Patrick feceeb0a22 passing certification and interop with rk 2018-11-18 11:15:00 -08:00
Conor Patrick fc8bc892c1 add initial resident key support 2018-11-18 11:15:00 -08:00
Conor Patrick 36fdc64fab passing interop w/o rk 2018-11-18 11:15:00 -08:00
Conor Patrick bec309ac2e wrong counter endian. check pinAuth even when pin not set. 2018-11-18 11:15:00 -08:00
Conor Patrick 693bac9c15 increase max msg size 2018-11-18 11:15:00 -08:00
Conor Patrick 43b5201a1e dont add uv option... 2018-11-18 11:15:00 -08:00
Conor Patrick 984b30234a small bug fixes 2018-11-18 11:15:00 -08:00
Conor Patrick 35e9077e20 wrong key type 2018-11-18 11:15:00 -08:00
Conor Patrick 80842dab29 passing u2f usbhid test 2018-10-30 01:50:46 -04:00
Conor Patrick 898a7a303c add aes in keygen 2018-10-28 22:14:36 -04:00
Conor Patrick 5993aa792a fix compile warnings, add flash locking 2018-10-28 20:09:12 -04:00
Conor Patrick 2fd96f8e4b pass fido2 tests 2018-10-28 16:30:55 -04:00
Conor Patrick bee17a3fbe update pc version 2018-10-26 00:54:32 -04:00
Conor Patrick b9e51f6125 initial on-device key generation 2018-10-26 00:52:32 -04:00
Conor Patrick 705ee28860 initial fido2 port 2018-10-25 21:25:49 -04:00
Conor Patrick 476178b3d3 use MIT license 2018-09-13 17:58:34 -04:00
Conor Patrick 961ea9a20d refactor as extensions 2018-09-12 22:32:15 -04:00
Nicolas Stalder 8ebb73614d add missing stdint header 2018-09-10 20:27:15 +00:00
Conor Patrick 2439c4f176 pass ctap tests on PC 2018-09-04 22:11:21 -04:00
Conor Patrick b6d077c226 add spacing 2018-09-03 00:23:10 -04:00
Conor Patrick 58ec4b16c5 NFC capability started 2018-07-22 23:40:27 -04:00
Conor Patrick a54cbd60a1 small refactoring, add efm8 reset 2018-07-15 12:24:32 -04:00
Conor Patrick 4cb4be21d9 finish bootloader 2018-07-14 23:03:25 -04:00
Conor Patrick b05f3cc9e8 add bootloader project 2018-07-14 15:55:57 -04:00
Conor Patrick 5eff2a104d add flash support to efm32 port 2018-07-13 21:34:15 -04:00
Conor Patrick 6e7be67491 port to device, working 2018-07-13 20:29:14 -04:00
Conor Patrick 2a8cda65bd tweaks 2018-07-13 10:19:32 -04:00
Conor Patrick 42fe31af17 passing all tests 2018-07-13 00:48:46 -04:00
Conor Patrick 202f76d313 attempt at promises.. 2018-07-12 00:14:39 -04:00
Conor Patrick 42f752fe41 drop last 0x01 if 33 bytes long 2018-07-11 23:03:04 -04:00
Conor Patrick 807dcc0422 pin requests, check button, version 2018-07-11 23:00:53 -04:00
Conor Patrick eaa7e15499 all core functionality *works* 2018-07-11 21:55:20 -04:00
Conor Patrick 156dc3163a complete pin support 2018-07-10 19:16:41 -04:00
Conor Patrick b9220defcc pin auth working 2018-07-08 22:36:16 -04:00
Conor Patrick 7df04964cc add wallet channel 2018-07-07 22:43:06 -04:00
Conor Patrick fbbf430152 efm8 bridge polled mode is much faster 2018-07-07 17:11:13 -04:00
Conor Patrick a18aa99220 updates 2018-07-05 23:20:33 -04:00
Conor Patrick 344a104ece efm8 usb bridge working 2018-07-04 12:48:18 -04:00
Conor Patrick fb9a592d50 move things around and add efm8 and efm32 builds 2018-06-27 21:39:19 -04:00