Expand description
This is a crate for using
OpenPGP card devices with
the rPGP
OpenPGP library.
In fact, this crate is a supplement for the
openpgp-card
crate.
This crate, openpgp-card-rpgp
, enables performing OpenPGP-specific
operations on cards, by leveraging both the rPGP
library and openpgp-card
.
If you want to use this crate, you will probably also want to use
openpgp-card
itself:
Much of the functionality of an OpenPGP card device doesn’t actually
involve the OpenPGP format. All of that functionality is available in
openpgp-card
, without requiring support for the OpenPGP format.
This crate implements additional support for operations that do require handling the OpenPGP format:
- Creating OpenPGP signatures
- Decryption of OpenPGP data
- Import of OpenPGP private key material
See this project’s “examples” for some pointers on how to use this crate.
Structs§
- Card
Slot - An individual OpenPGP card key slot, which can be used for private key operations.
- Uploadable
Key - Private key material that can be uploaded to a card slot.
Enums§
- Error
- Enum wrapper for the error types of this crate
Functions§
- bind_
into_ certificate - Bind the subkeys of a card into a
SignedPublicKey
. - public_
key_ material_ and_ fp_ to_ key - Get PublicKey for an openpgp-card PublicKeyMaterial, KeyGenerationTime and Fingerprint.
- public_
key_ material_ to_ key - Transform an openpgp-card
PublicKeyMaterial
andKeyGenerationTime
into an rpgpPublicKey
representation. - public_
to_ fingerprint - Calculate the
Fingerprint
forPublicKeyMaterial
andKeyGenerationTime