openpgp-card/openpgp-card-sequoia
Heiko Schaefer e6c40be8ad
Adjusted/improved handling of public keys (especially to find the correct KDF parameters for ECC decryption keys):
- "Brute force" find the right KDF parameters in the new helper fn public_key_material_and_fp_to_key() [try possible parameters until a matching fingerprint is found, error if none].
- In `opgpcard pubkey`, use public_key_material_and_fp_to_key() to find the right parameters for the ECC decryption subkey (this subcommand now fails when the fingerprint on the card doesn't match the fingerprint of the public key data for that key slot)
- When generating OpenPGP ECC decryption keys from public key material (including to compute fingerprints from the key material), use SHA256/AES128 as default parameters.
2022-04-15 16:17:04 +02:00
..
example Move example keys/data to openpgp-card-sequoia 2021-10-29 22:38:01 +02:00
examples Clean up dependencies; move openpgp-card-sequoia test-code into examples/. 2022-04-12 11:41:33 +02:00
src Adjusted/improved handling of public keys (especially to find the correct KDF parameters for ECC decryption keys): 2022-04-15 16:17:04 +02:00
Cargo.toml Adjusted/improved handling of public keys (especially to find the correct KDF parameters for ECC decryption keys): 2022-04-15 16:17:04 +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