openpgp-card/openpgp-card-sequoia
Wiktor Kwapisiewicz 3c3051e31e
openpgp-card-sequoia: Allow disabling default crypto backend.
Previously the list of features of `sequoia-openpgp` unconditionally
included `crypto-nettle`. That was preventing the use of this crate in
pure Rust setups.

This commit allows disabling crypto backends and it is up to the
crate user to explicitly include `sequoia_openpgp` features that they
want.

See: https://gitlab.com/sequoia-pgp/sequoia/-/blob/main/README.md#note
2023-02-14 16:21:29 +01:00
..
example Move example keys/data to openpgp-card-sequoia 2021-10-29 22:38:01 +02:00
examples Fix clippy lints: directly use variables in format! strings 2023-02-02 09:09:47 +01:00
src Replace nettle with pure-rust RSA for conversions 2023-02-10 12:52:47 +01:00
Cargo.toml openpgp-card-sequoia: Allow disabling default crypto backend. 2023-02-14 16:21:29 +01:00
README.md openpgp-card-sequoia: restructure code, api; add more documentation 2022-10-28 18:55:42 +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.

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 examples/test.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 --example test

You can see more debugging output by increasing the log-level, like this:

$ RUST_LOG=trace cargo run --example test