This fixes a mistake with the openpgp-card-pcsc 0.2.2 release: openpgp-card-pcsc 0.2.2 depends on openpgp-card 0.3. However, this results in an (accidental) semver break, because openpgp-card-pcsc exposes parts of the openpgp-card API. See https://gitlab.com/openpgp-card/openpgp-card/-/issues/41 |
||
---|---|---|
.. | ||
example | ||
examples | ||
src | ||
Cargo.toml | ||
README.md |
OpenPGP card usage with Sequoia PGP
This crate is a higher level wrapper for the openpgp-card crate.
It offers convenient access to OpenPGP card functionality using Sequoia PGP.
Note: the current API of this crate is an early draft, reflected by version numbers in the 0.0.x range.
Example code
The program main.rs
performs a number of functions on an OpenPGP card.
To run it, you need to set an environment variable to the identifier of
the OpenPGP card you want to use.
NOTE: data on this card will be deleted in the process of running this program!
$ export TEST_CARD_IDENT="0123:4567ABCD"
$ cargo run
You can see more debugging output by increasing the log-level, like this:
$ RUST_LOG=trace cargo run