Skip to content

Commit

Permalink
rcovered_pk: fix c/h for partial in selftests
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Dec 14, 2024
1 parent f26727e commit 86de7f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/recover_pk.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ def selftests():
elif len(t['samples'])//2 == 1:
recovereds = [(c, h) for c, h, pk in list(recovered)
if t['pk'].lower() == binascii.hexlify(pk).decode('utf8').lower()]
if len(recovereds) > 0:
if len(recovereds) == 1:
c, h = recovereds[0]
print("%15s/%-8s ( %s ) partial" % (c, h, color('ok', fg='green')))
else:
succeeded = False
Expand Down

0 comments on commit 86de7f5

Please sign in to comment.