Skip to main content

confium_store_openpgp_card/
lib.rs

1//! OpenPGP card backend (YubiKey OpenPGP applet, Nitrokey, Gnuk).
2//!
3//! Standards-only: uses the OpenPGP card v3+ spec. No vendor-specific
4//! SDKs. All OpenPGP-compatible smartcards work.
5//!
6//! The OpenPGP card spec natively supports:
7//! - SIG slot (signing)
8//! - DEC slot (decryption)
9//! - AUT slot (authentication)
10//!
11//! Real hardware integration requires `openpgp-card` + `card-backend-pcsc`
12//! crates, which depend on PCSC. This crate provides the trait interface
13//! and an in-memory mock backend for testing.
14//!
15//! See `TODO.roadmap/34-identity-and-hardware.md` for full spec.
16
17#![forbid(unsafe_code)]
18#![allow(missing_docs)] // TODO: document before 1.0
19
20mod backend;
21mod slot;
22
23pub use backend::*;
24pub use slot::*;
25
26#[cfg(feature = "rnp-backend")]
27mod rnp_backend;
28
29#[cfg(feature = "rnp-backend")]
30pub use rnp_backend::*;