Commit Graph
21 Commits
Author SHA1 Message Date
Szczepan Zalega a5877f518f Additional assertions and reordering 2019-08-20 12:42:46 +02:00
Szczepan Zalega 5a0cc0d02c Version used STATE data structures 2019-08-20 11:57:32 +02:00
Szczepan Zalega b452e3dfe4 Correct doc 2019-08-20 11:47:14 +02:00
Szczepan Zalega 7f82233d17 Add missing unit for firmware compilation 2019-08-20 11:38:29 +02:00
Szczepan Zalega 8e3753e711 Add initial STATE migration code (2) 2019-08-20 11:34:51 +02:00
Szczepan Zalega 816ca21f08 Correct writing salted hash
pinHashEnc is 16 bytes, which is too small to store sha256 result.
2019-08-20 11:34:48 +02:00
Szczepan Zalega 6c60a37e8a Add initial STATE migration code 2019-08-20 11:34:45 +02:00
Szczepan Zalega ee351421cb Add missing definition for the simulation to run 2019-08-20 11:34:42 +02:00
Szczepan Zalega bac576f3a0 Make the state structure backward-compatible. Add version. 2019-08-20 11:34:39 +02:00
Szczepan Zalega 6e637299e5 Add missing declaration, and comment out wallet message 2019-08-20 11:34:35 +02:00
Szczepan Zalega 43b3e93854 Modify state struct 2019-08-20 11:34:32 +02:00
Szczepan Zalega 5a448d636c Add comments 2019-08-20 11:34:29 +02:00
Szczepan Zalega 7be0553377 Replace FIDO2 PIN storage with its hash 2019-08-20 11:34:26 +02:00
Szczepan Zalega be37ed46f7 Add instruction for manual flashing of the Nucleo board
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-08-05 16:00:30 +02:00
Szczepan Zalega 420d052ac9 Describe running Solo on the Nucleo32 board
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-08-05 16:00:27 +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
Szczepan Zalega 5806b25fd1 Prevent Solo's debug serial port use by ModemManager
This Udev rule marks the device to be ignored by the MM.
Otherwise using the CDC ACM serial port interface will not be
possible, while its service is running.

Tested on Fedora 29, with ModemManager enabled, using:
$ solotool.py monitor /dev/solokey-serial
Fixes https://github.com/solokeys/solo/issues/62

As provided by @yparitcher in:
https://github.com/solokeys/solo/pull/60#issuecomment-452428432

Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-09 11:41:23 +01:00
Szczepan Zalega 4110434e33 Add Udev symlink for Solo's serial port
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-09 11:41:20 +01:00
Szczepan Zalega 8c103be5c0 Udev rules related docs update
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-09 11:41:16 +01:00
Szczepan Zalega f38b29256b Describe operations done in the bootloader
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-08 19:31:33 +01:00
Szczepan Zalega ca27b26c6b Avoid 2nd start of the simulation server
udp_server() is being called second time during the simulated run, which
fails due to trying to claim already used port. This patch adds cache to
the udp_server() result.

Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
2019-01-07 18:47:01 +01:00