openpgp-card/openpgp-card-sequoia
Heiko Schaefer 8aae0a357e Split the Response type into an internal RawResponse type which also contains the status bytes, and an external Response type that can only be generated from a RawResponse with status "ok".
This removes the need for external users of openpgp-card to check the status or operations.
That is, openpgp-card now always returns an `Err` if the status of a command is not ok.
2021-08-20 13:25:58 +02:00
..
src Split the Response type into an internal RawResponse type which also contains the status bytes, and an external Response type that can only be generated from a RawResponse with status "ok". 2021-08-20 13:25:58 +02:00
Cargo.toml Bump version for release 2021-08-18 20:14:30 +02:00
README.md Minor edit of README 2021-08-18 20:10:48 +02:00

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.

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