[][src]Module yubihsm::connector

Methods of connecting to a YubiHSM2:

  • HttpConnector: communicates with HSM via the yubihsm-connector service's HTTP API
  • UsbConnector: communicates with the HSM directly via USB using libusb.

Additionally, MockHsm implements the Connector API and can be used as a drop-in replacement in places where you would like a simulated HSM for testing (e.g. CI).

Modules

http

Connection for yubihsm-connector which communicates using HTTP.

usb

Support for interacting directly with the YubiHSM 2 via USB

Enums

ConnectionErrorKind

yubihsm-connector related error kinds

Traits

Connection

Connections to the HSM

Connector

Connectors which create Connection objects to the HSM

Type Definitions

ConnectionError

yubihsm-connector related errors