INNER CODE UNIT · Python

e

polhenarejos/pico-hsm · tools/pico-hsm-tool.py:545

            e = e[:-1]
        indices.append(int(e) + off)
    return indices

def main(args):
    sys.stderr.buffer.write(b'Pico HSM Tool v2.4\n')
    sys.stderr.buffer.write(b'Author: Pol Henarejos\n')
    sys.stderr.buffer.write(b'Report bugs to https://github.com/polhenarejos/pico-hsm/issues\n')
    sys.stderr.buffer.write(b'\n\n')
    sys.stderr.flush()

    picohsm = PicoHSM(args.pin, slot=args.slot)

    # Following commands may raise APDU exception on error
    if (args.command == 'initialize'):
        initialize(picohsm, args)
    elif (args.command == 'attestate'):
        attestate(picohsm, args)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…