Skip to main content

Crate confium_store_openpgp_card

Crate confium_store_openpgp_card 

Source
Expand description

OpenPGP card backend (YubiKey OpenPGP applet, Nitrokey, Gnuk).

Standards-only: uses the OpenPGP card v3+ spec. No vendor-specific SDKs. All OpenPGP-compatible smartcards work.

The OpenPGP card spec natively supports:

  • SIG slot (signing)
  • DEC slot (decryption)
  • AUT slot (authentication)

Real hardware integration requires openpgp-card + card-backend-pcsc crates, which depend on PCSC. This crate provides the trait interface and an in-memory mock backend for testing.

See TODO.roadmap/34-identity-and-hardware.md for full spec.

Structs§

CardId
An OpenPGP card identifier (typically derived from the card’s serial number).
MockOpenpgpCardBackend
In-memory mock backend (no hardware). Testing only.

Enums§

CardError
Errors during OpenPGP card operations.
OpenpgpSlot
OpenPGP card slot (per OpenPGP card spec v3.x).
PinPolicy
PIN policy supported by the OpenPGP card spec.
PinReference
PIN reference identifiers per OpenPGP card spec.

Traits§

OpenpgpCardBackend
Backend trait for talking to OpenPGP cards.