Module yubihsm::connector::usb

source ·
Available on crate feature usb only.
Expand description

Support for connecting to the YubiHSM 2 via USB.

Typically to access a YubiHSM 2 via USB, you’ll use the Connector::usb method in the event there is only one expected to be connected at a time.

To enumerate available USB devices (e.g. in the case there is more than one YubiHSM connected to the same computer), use Devices.

Structs

  • A USB device we’ve identified as a YubiHSM 2
  • A collection of detected YubiHSM 2 devices, represented as Device
  • Configuration for connecting to the YubiHSM via USB
  • Connection to HSM via USB
  • Connect to the HSM via USB.
  • Timeouts when performing USB operations

Constants