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).
- Mock
Openpgp Card Backend - In-memory mock backend (no hardware). Testing only.
Enums§
- Card
Error - Errors during OpenPGP card operations.
- Openpgp
Slot - 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§
- Openpgp
Card Backend - Backend trait for talking to OpenPGP cards.