Crate openpgp_card[−][src]
Expand description
Access library for OpenPGP card devices (such as Gnuk, Yubikey, or Java smartcards running an OpenPGP card application).
This library aims to offer
- access to all features in the OpenPGP card specification,
- without relying on a particular OpenPGP implementation.
This library doesn’t itself implement a means to access cards. Instead,
users need to supply an implementation of the CardClient
trait, for
access to cards.
The companion crate openpgp-card-pcsc offers a backend that uses pcsclite to communicate with smartcards.
The openpgp-card-sequoia crate offers a higher level wrapper based on the Sequoia PGP implementation.
Modules
Data structures that define OpenPGP algorithms.
OpenPGP card data objects (DO)
Data structures for cryptographic material: Private key data, public key data, cryptograms for decryption, hash data for signing.
Structs
Low-level access to OpenPGP card functionality.
Configuration of the capabilities of the card.
A KeySet binds together a triple of information about each Key on a card
Response from the card to a command.
Enums
Enum wrapper for the different error types of this crate
Identify a Key slot on an OpenPGP card
Errors on the smartcard/reader layer
OpenPGP card “Status Bytes” (ok statuses and errors)
Traits
The CardClient trait defines communication with an OpenPGP card via a backend implementation (e.g. the pcsc backend in the crate openpgp-card-pcsc).
Type Definitions
A boxed CardClient (which is Send+Sync).