Crate openpgp_card_sequoia[][src]

Expand description

This library supports using openpgp-card functionality with sequoia_openpgp data structures.

Modules

Structs

An OpenPGP card after successful verification of PW3 (“Admin privileges”)

Representation of an opened OpenPGP card in its basic, freshly opened, state (i.e. no passwords have been verified, default privileges apply).

An OpenPGP card after successful verification of PW1 in mode 81 (verification for signing)

An OpenPGP card after successful verification of PW1 in mode 82 (verification for operations other than signing)

Functions

Create a Cert from the three subkeys on a card. (Calling this multiple times will result in different Certs!)

Helper fn: get a Key<PublicParts, UnspecifiedRole> for a PublicKeyMaterial

Mapping function to get a fingerprint from “PublicKeyMaterial + timestamp + KeyType” (intended for use with CardApp.generate_key()).

Convenience fn to select and upload a (sub)key from a Cert, as a given KeyType. If multiple suitable (sub)keys are found, the first one is used.

Upload a ValidErasedKeyAmalgamation to the card as a specific KeyType.

Helper fn: get a CardUploadableKey for a ValidErasedKeyAmalgamation