Nitrokey / nitrokey-start-firmware

A mirror of Gnuk's 1.0.x and 1.2.x branches.
56 stars 15 forks source link

Freeze while reading certificate with get_data #38

Closed szszszsz closed 4 years ago

szszszsz commented 4 years ago

Device freezes when the certificate DO is accessed with get_data. It works with read_binary, though I could not read past 256 bytes with initial setup. To investigate.

Tests and WIP in 46f1dea / multiple-identity branch.

Commands used:

cd tool
dd if=/dev/urandom of=random512 bs=1 count=512
python3 ./gnuk_put_binary_libusb.py -u random512
szszszsz commented 4 years ago

Potentially fixing commit: https://github.com/kliment/nitrokey-start-firmware/commit/d5fd27b8939951c02f85b3bdd6e65a32171b085c OpenPGP v2.1 reference: https://gnupg.org/ftp/specs/OpenPGP-smart-card-application-2.1.pdf

Edit: initial test shows that mentioned commit fixed crash