13 unstable releases (3 breaking)

0.3.0 Jan 30, 2025
0.2.0 Sep 25, 2024
0.1.2 Aug 25, 2024
0.1.1 Jun 18, 2024
0.0.3 Apr 22, 2024

#992 in Cryptography

Download history 26/week @ 2024-10-26 49/week @ 2024-11-02 48/week @ 2024-11-09 32/week @ 2024-11-16 56/week @ 2024-11-23 29/week @ 2024-11-30 40/week @ 2024-12-07 25/week @ 2024-12-14 26/week @ 2024-12-21 18/week @ 2024-12-28 26/week @ 2025-01-04 201/week @ 2025-01-11 14/week @ 2025-01-18 127/week @ 2025-01-25 76/week @ 2025-02-01 31/week @ 2025-02-08

249 downloads per month
Used in 3 crates

MIT/Apache

77KB
950 lines

OpenPGP card client library for use with rPGP

This crate implements OpenPGP card support for use with rPGP.

This is a convenience layer on top of the implementation-agnostic OpenPGP card client library https://crates.io/crates/openpgp-card.

flowchart TD
    OCR["openpgp-card-rpgp"] --> OC["openpgp-card <br/> (OpenPGP card client library)"]
    OCR --> RPGP["rPGP <br/> (OpenPGP implementation)"]
    OC --> PCSC["card-backend-pcsc <br/> (access cards via PC/SC)"]

lib.rs:

This is a crate for using OpenPGP card devices with the rPGP OpenPGP library.

In fact, this crate is a supplement for the openpgp-card crate. This crate, openpgp-card-rpgp, enables performing OpenPGP-specific operations on cards, by leveraging both the rPGP library and openpgp-card. If you want to use this crate, you will probably also want to use openpgp-card itself:

Much of the functionality of an OpenPGP card device doesn't actually involve the OpenPGP format. All of that functionality is available in openpgp-card, without requiring support for the OpenPGP format.

This crate implements additional support for operations that do require handling the OpenPGP format:

  • Creating OpenPGP signatures
  • Decryption of OpenPGP data
  • Import of OpenPGP private key material

See this project's "examples" for some pointers on how to use this crate.

Dependencies

~17–24MB
~330K SLoC