openpgp-card/openpgp-card-sequoia
Heiko Schaefer 2b221fa76b Truncate digest length for ECDSA.
This fixes signing for nistp256 keys with Gnuk (Gnuk expects a 32 byte hash for nistp256)
2021-07-19 14:18:09 +02:00
..
src Truncate digest length for ECDSA. 2021-07-19 14:18:09 +02:00
Cargo.toml Support scdaemon as an alternative backend for interaction with OpenPGP cards. 2021-07-16 16:30:56 +02:00
README.md Adjust README 2021-07-03 18:24:56 +02:00

OpenPGP card for Sequoia PGP

This crate is a thin wrapper for the openpgp-card crate. It offers convenient access to OpenPGP card functionality with Sequoia PGP.

Example code

The program main.rs performs a number of functions on an OpenPGP card. To use it, you need to set an environment variable to the serial number 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 a lot more debugging output by increasing the log-level, like this:

$ RUST_LOG=trace cargo run