3 unstable releases

0.2.0 Jun 16, 2021
0.1.1 May 26, 2021
0.1.0 May 25, 2021

#647 in Cryptography


Used in sequoia-sop

MIT license

49KB
969 lines

Rust Interface for the Stateless OpenPGP Protocol

A set of types and traits formalizing the Stateless OpenPGP Protocol. Currently, SOP is only defined as a command line interface, but we are working on a C Interface. This interface is the Rust equivalent of the yet to be defined C API.

Command Line Interface

This crate contains an implementation of the Stateless OpenPGP Command Line Interface in terms of the Rust types and traits. Once you implemented the traits, you get the command line interface basically for free by adding this snippet to your Cargo.toml:

[[bin]]
path = "src/main.rs"
required-features = ["cli"]

[features]
cli = ["sop/cli"]

And creating src/main.rs along the lines of:

fn main() {
    sop::cli::main(&MySOPImplementation::default());
}

Dependencies

~0.4–1.2MB
~26K SLoC