INNER CODE UNIT · Python

initialize

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

def initialize(picohsm, args):
    if (not args.silent):
        print('********************************')
        print('*   PLEASE READ IT CAREFULLY   *')
        print('********************************')
        print('')
        print('This tool will erase and reset your device. It will delete all '
            'private and secret keys.')
        print('Are you sure?')
        _ = input('[Press enter to confirm]')

    picohsm.initialize(pin=args.pin, sopin=args.so_pin, no_dev_cert=args.no_dev_cert)

    if (not args.no_dev_cert):
        print('Certificate uploaded successfully!')
        print('')
    print('Note that the device is initialized with a default PIN and '
        'configuration.')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…