Change for firmware upgrade and ack-button.

This commit is contained in:
NIIBE Yutaka
2019-02-22 19:53:52 +09:00
parent aedf8267ec
commit 940332c47f
3 changed files with 29 additions and 7 deletions

15
tool/gnuk_get_random.py Executable file
View File

@@ -0,0 +1,15 @@
#! /usr/bin/python3
from gnuk_token import get_gnuk_device, gnuk_token
from binascii import hexlify
import sys
if __name__ == '__main__':
gnuk = get_gnuk_device()
gnuk.cmd_select_openpgp()
looping = (len(sys.argv) > 1)
while True:
challenge = gnuk.cmd_get_challenge().tostring()
print(hexlify(challenge))
if not looping:
break