#openpgp-card #sequoia #wrapper #process #numbers #access #set

openpgp-card-sequoia

Wrapper of openpgp-card for use with Sequoia PGP

26 releases

0.2.1 Feb 16, 2024
0.2.0 Sep 5, 2023
0.1.5 Aug 19, 2023
0.1.2 Apr 8, 2023
0.0.1 Jun 30, 2021

#1412 in Cryptography

Download history 24/week @ 2024-01-21 15/week @ 2024-01-28 248/week @ 2024-02-11 100/week @ 2024-02-18 75/week @ 2024-02-25 83/week @ 2024-03-03 74/week @ 2024-03-10 149/week @ 2024-03-17 6/week @ 2024-03-24 80/week @ 2024-03-31 11/week @ 2024-04-07 52/week @ 2024-04-14 101/week @ 2024-04-21 29/week @ 2024-04-28 17/week @ 2024-05-05

201 downloads per month
Used in 5 crates (3 directly)

MIT/Apache and LGPL-2.0-or-later

395KB
7.5K SLoC

Using openpgp-card 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 API of this crate is not finalized yet, please expect occasional breaking changes.

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

Funding

This project has been funded in part through NGI Assure, a fund established by NLnet with financial support from the European Commission's Next Generation Internet program.

NGI Assure Logo

Learn more at the NLnet project page.

Dependencies

~15–24MB
~339K SLoC