[][src]Module yubihsm::connector

Methods of connecting to a YubiHSM 2:

  • HTTP: communicate with YubiHSM via the yubihsm-connector process from the Yubico SDK.
  • USB: communicate directly with the YubiHSM over USB using the libusb crate.

Additionally, this crate includes an optional development-only mockhsm (gated under a mockhsm cargo feature) which 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 connecting to the YubiHSM 2 via USB.

Structs

Connector

Abstract interface to multiple types of YubiHSM 2 connections

HttpConfig

Configuration options for the HTTP (i.e. yubihsm-connector) connection

UsbConfig

Configuration for connecting to the YubiHSM via USB

Enums

ErrorKind

yubihsm-connector related error kinds

Traits

Connection

Connections to the HSM

Type Definitions

Error

yubihsm-connector related errors