10 releases

0.1.1 Jun 18, 2024
0.1.0 Jun 7, 2024
0.0.8 Jun 3, 2024
0.0.6 May 28, 2024
0.0.3 Apr 22, 2024

#1798 in Cryptography

Download history 196/week @ 2024-04-04 286/week @ 2024-04-11 199/week @ 2024-04-18 139/week @ 2024-04-25 72/week @ 2024-05-02 3/week @ 2024-05-09 129/week @ 2024-05-16 458/week @ 2024-05-23 668/week @ 2024-05-30 257/week @ 2024-06-06 249/week @ 2024-06-13 83/week @ 2024-06-20 34/week @ 2024-06-27

642 downloads per month
Used in 7 crates (3 directly)

MIT/Apache

81KB
945 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
~328K SLoC