INNER CODE UNIT · Python
disable_device_aut
polhenarejos/pico-hsm · tools/pico-hsm-tool.py:340
def disable_device_aut(self):
ct = self.get_skey()
self.picohsm.send(cla=0x80, command=0x64, p1=0x3A, p2=0x04, data=list(ct))
def secure(picohsm, args):
slck = SecureLock(picohsm)
if (args.subcommand == 'enable'):
slck.enable_device_aut()
elif (args.subcommand == 'unlock'):
slck.unlock_device()
elif (args.subcommand == 'disable'):
slck.disable_device_aut()
def cipher(picohsm, args):
if (args.file_in):
fin = open(args.file_in, 'rb')
else:
fin = sys.stdin.buffer