mirror of
https://salsa.debian.org/gnuk-team/gnuk/gnuk.git
synced 2024-09-20 02:40:08 +00:00
ea88c3da66
While updating from GNUK 1.2.6, upgrade_by_passwd.py script shows exception about not found referenced data: File "./upgrade_by_passwd.py", line 55, in main kdf_data = gnuk.cmd_get_data(0x00, 0xf9).tostring() File "/home/sz/work/nitrokey-start-firmware/tool/gnuk_token.py", line 320, in cmd_get_data raise ValueError("%02x%02x" % (sw[0], sw[1])) ValueError: 6a88 While it is checked, whether the KDF DO is empty, there is no exception catch for not found object. This patch adds it. Tested update paths 1.2.6 -> 1.2.10, 1.2.6 -> 1.2.6, 1.2.10 -> 1.2.10, 1.2.10 -> 1.2.6. Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com> |
||
---|---|---|
.. | ||
asm-thumb | ||
openocd-script | ||
add_openpgp_authkey_from_gpgssh.py | ||
calc_precompute_table_ecc.py | ||
dfuse.py | ||
dump_mem.py | ||
get_raw_public_key.py | ||
gnuk_put_binary_libusb.py | ||
gnuk_remove_keys_libusb.py | ||
gnuk_token.py | ||
gnuk_upgrade.py | ||
gnuk-emulation-setup | ||
gpg_agent.py | ||
hub_ctrl.py | ||
intel_hex.py | ||
kdf_calc.py | ||
pageant_proxy_to_gpg.py | ||
pinpadtest.py | ||
rsa_example.key | ||
rsa.py | ||
sexp.py | ||
stlinkv2.py | ||
upgrade_by_passwd.py | ||
usb_strings.py |