Skip to main content

Crate hsm_host

Crate hsm_host 

Source
Expand description

CLI used to operate the mini-HSM dongle from a development host.

Most subcommands map one-to-one to a USB-HID opcode. The two exceptions are enumerate (no chip command involved) and the lock commands (interactive double-confirm before the opcode is sent).

ModulesΒ§

device πŸ”’
HID device abstraction.

StructsΒ§

Cli πŸ”’

EnumsΒ§

Command πŸ”’

FunctionsΒ§

check_pin πŸ”’
check_puk πŸ”’
cmd_close_session πŸ”’
cmd_emergency_reset_dangerous πŸ”’
cmd_genkey πŸ”’
cmd_get_pubkey πŸ”’
cmd_info πŸ”’
cmd_lock_config_dangerous πŸ”’
cmd_lock_data_dangerous πŸ”’
cmd_lock_slot_dangerous πŸ”’
cmd_pin_status πŸ”’
cmd_provision_slot πŸ”’
cmd_provision_token πŸ”’
Provision a fresh chip in one orchestrated pass.
cmd_read_config πŸ”’
cmd_read_config_slot πŸ”’
cmd_read_counter πŸ”’
cmd_read_slot_block πŸ”’
cmd_read_slot_word πŸ”’
cmd_set_pin πŸ”’
cmd_set_puk πŸ”’
cmd_sign πŸ”’
cmd_unblock_pin πŸ”’
cmd_verify_pin πŸ”’
cmd_write_config πŸ”’
confirm_interactive πŸ”’
Print a confirmation prompt and read a line from stdin. Returns OK only if the line matches expected exactly. Anything else aborts with an error.
main πŸ”’
parse_hex_array πŸ”’
read_full_config_zone πŸ”’
Read the chip’s full 128-byte configuration zone via the device.