Module yubihsm::connector

source ·
Expand description

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 rusb 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).

Re-exports

Modules

  • httphttp
    Connection for yubihsm-connector which communicates using HTTP.
  • usbusb
    Support for connecting to the YubiHSM 2 via USB.

Structs

  • Abstract interface to multiple types of YubiHSM 2 connections

Enums

  • yubihsm-connector related error kinds

Traits

Type Definitions

  • yubihsm-connector related errors