470 Commits

Author SHA1 Message Date
yparitcher
8dd211d557
merge upstream 2019-02-12 19:49:47 -05:00
Conor Patrick
747d9a194d
Merge pull request #86 from pjz/black
Add black to travis checking
2019-02-12 19:37:57 -05:00
yparitcher
bfd8827073
fix Makfile: bootloader 2019-02-12 19:35:33 -05:00
yparitcher
ce92c7634e
fix bootloader version 2019-02-12 19:34:46 -05:00
yparitcher
f97d9ab34f
fixes 2019-02-12 19:22:35 -05:00
Conor Patrick
a2611fb013 run python black 2019-02-12 18:45:01 -05:00
yparitcher
f2d0e3d275
Revert "Travis: use python 3.6" Hopefuly we dont need this
This reverts commit e10ad70b2b8e15de5fcace7af3f8e1cc9a6ca2f0.
2019-02-12 18:27:11 -05:00
yparitcher
c1631c7172
Travis: try to get python to work 2019-02-12 18:27:11 -05:00
yparitcher
259020ece0
Travis: use python 3.6 2019-02-12 18:27:10 -05:00
yparitcher
589b17c596
Travis: install venv 2019-02-12 18:27:10 -05:00
yparitcher
ad4e526497
Travis: install toolchain 2019-02-12 18:27:10 -05:00
yparitcher
f005ea438c
spacing 2019-02-12 18:27:10 -05:00
yparitcher
2615fd39ac
spacing 2019-02-12 18:27:10 -05:00
yparitcher
eba9ce8475
fix usbd_hid.c 2019-02-12 18:27:10 -05:00
yparitcher
a4f01c3f23
PHONY targets 2019-02-12 18:27:09 -05:00
yparitcher
c2342834dd
optimize venv 2019-02-12 18:27:09 -05:00
yparitcher
be212fd8b1
stm32l432: clean .map files 2019-02-12 18:25:48 -05:00
yparitcher
ee817ea8bb
automate building cbor 2019-02-12 18:24:29 -05:00
yparitcher
6c6f0a0068
fix Makefile, Travis make 2019-02-12 18:24:28 -05:00
yparitcher
5862a8a5ac
hacker VID/PID pair 2019-02-12 18:24:28 -05:00
yparitcher
a966ea3a58
tweak Makefile 2019-02-12 18:22:50 -05:00
yparitcher
eed418ea33
add black to travis build 2019-02-12 18:22:50 -05:00
yparitcher
9a037279c8
fix travis build 2019-02-12 18:22:50 -05:00
yparitcher
727e1f2fd9
fix travis build 2019-02-12 18:22:49 -05:00
yparitcher
5afdef463e
add stm32l432 build test 2019-02-12 18:22:49 -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
23c140fd99
Merge pull request #107 from solokeys/license-change
License change
2019-02-12 17:47:43 -05:00
Conor Patrick
894f6f7ee1
Merge branch 'master' into license-change 2019-02-12 17:47:28 -05:00
Conor Patrick
b9e6d552f8
Merge pull request #105 from solokeys/versioning
Versioning
2019-02-12 17:46:45 -05:00
Conor Patrick
828a8fc0b5 Update README.md 2019-02-12 17:21:37 -05:00
Conor Patrick
45eaef2663 delete non-supported platforms 2019-02-12 17:18:44 -05:00
Conor Patrick
ed676151f1 update license to apache2 + mit 2019-02-12 17:18:17 -05:00
Conor Patrick
45da2f0b32 Update solotool.py 2019-02-12 16:37:40 -05:00
Conor Patrick
6c23532f08 use 3-byte version 2019-02-12 16:37:32 -05:00
Conor Patrick
bc8984aac3 pass version to gcc derived from git describe 2019-02-12 16:37:09 -05:00
Conor Patrick
020fe21546 organize version header info 2019-02-12 16:11:06 -05:00
Conor Patrick
9957a83746 organize makefiles 2019-02-12 16:03:04 -05:00
Conor Patrick
72bca0765a see firmware version from solotool 2019-02-12 15:11:48 -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
8303bb04d3 write bootloader version from bootloader 2019-02-12 13:59:36 -05:00
Conor Patrick
d23bf0a144 change product name, include version string 2019-02-12 13:59:16 -05:00
Conor Patrick
a6446e67bc
Merge pull request #80 from merlokk/led_normalization
led emission normalization
2019-02-11 22:12:24 -05:00
Conor Patrick
0634510b92
Merge pull request #81 from merlokk/fix_flash_lock
flash_lock() must be at beginning
2019-02-11 21:57:40 -05:00
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
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
Paolo Smiraglia
4c36a752cb Fix vendor and product id 2019-01-31 02:56:42 +01:00