15 releases

new 0.1.0 Jun 18, 2024
0.0.14 Jun 3, 2024
0.0.12 May 28, 2024
0.0.8 Apr 29, 2024
0.0.1 Feb 26, 2024

#1030 in Cryptography

Download history 149/week @ 2024-02-26 13/week @ 2024-03-04 97/week @ 2024-03-11 63/week @ 2024-03-18 356/week @ 2024-03-25 81/week @ 2024-04-01 445/week @ 2024-04-08 73/week @ 2024-04-15 61/week @ 2024-04-22 576/week @ 2024-04-29 40/week @ 2024-05-06 351/week @ 2024-05-20 534/week @ 2024-05-27 394/week @ 2024-06-03 25/week @ 2024-06-10

1,304 downloads per month
Used in 6 crates (5 directly)

MIT/Apache

110KB
2K SLoC

rpgpie 🦀️🔐🥧

A higher-level OpenPGP API based on rPGP.

rpgpie is an experimental wrapping API on top of the rPGP library.

Main goals of rpgpie include simplicity, collaboration and fun 🥳.

Objectives of rpgpie

More concretely, rpgpie currently has the following objectives:

  • Expose an API to implement stateless OpenPGP (SOP) functionality (see rsop).
  • Experiment with applying the terminology and conceptual framing of the "OpenPGP for application developers" documentation.
  • Experiment with high level API design for OpenPGP.
  • Add a basic policy to rPGP (e.g. to limit accepted algorithms).

Limitations and non-objectives

rpgpie does not currently process messages in an efficient, streaming manner. Messages that are too large to be conveniently processed in RAM can currently not be handled with rpgpie.

The rpgpie API currently limits itself to using certificates (also known as "OpenPGP public keys") and TSKs (also known as "OpenPGP secret/private keys") as they are. Updating or altering certificates or TSKs is currently out of scope.

For the current phase of exploration, proper error handling is not a goal of rpgpie. The code may panic in all kinds of circumstances.

API stability is not a goal in the current phase of development.

Technical Details

Rpgpie implements some higher-order OpenPGP facilities:

  • Certificate-level:

    • A policy on cryptographic primitives (to reject use of weak algorithms).
    • Asserting validity of individual OpenPGP signature packets.
    • Evaluating stacks of OpenPGP signatures (which make statements about the same component) over time.
    • OpenPGP semantics guarantees on the certificate level (evaluating self-signature graphs).
  • Message-level:

    • Generate/validate data signatures,
    • Encrypt/decrypt data.
    • Apply a policy for acceptable cryptographic mechanisms.

Warning, early-stage project!

The code in this project is NOT currently intended for production use.

Dependencies

~18–31MB
~407K SLoC