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
expectedexactly. 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.