Crate openpgp_card_rpgp

Source
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§

CardSlot
An individual OpenPGP card key slot, which can be used for private key operations.
UploadableKey
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 and KeyGenerationTime into an rpgp PublicKey representation.
public_to_fingerprint
Calculate the Fingerprint for PublicKeyMaterial and KeyGenerationTime