Files
gnuk/tool
Szczepan Zalega ea88c3da66 Catch exception, when no KDF data is found
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>
2018-07-13 16:23:58 +09:00
..
2013-09-30 17:37:33 +09:00
2014-02-19 14:51:09 +09:00
2013-12-25 11:33:00 +09:00
2016-10-15 20:14:18 +09:00
2018-04-03 17:17:51 +09:00
2018-04-03 17:17:51 +09:00
2015-08-04 12:32:56 +09:00
2017-10-05 13:53:48 +09:00
2015-08-03 19:22:02 +09:00
2016-08-03 21:19:34 +09:00
2015-08-03 19:22:02 +09:00
2018-04-04 16:34:07 +09:00
2012-12-25 14:47:49 +09:00
2015-08-04 12:32:56 +09:00
2013-02-14 11:09:06 +09:00
2016-06-01 09:49:28 +09:00
2017-02-01 12:34:35 +09:00