Crate sequoia_sop
source ·Expand description
An implementation of the Stateless OpenPGP Interface using Sequoia PGP.
SOP is a very high-level, opinionated, and abstract interface for
OpenPGP implementations. To use it, create an instance using
SQOP::default
or SQOP::with_policy
, then use the trait
SOP
.
§Examples
This example generates a key.
use sequoia_sop::{*, sop::*};
let sop = SQOP::default();
let alice_sec = sop.generate_key()?
.userid("Alice Lovelace <alice@openpgp.example>")
.generate()?
.to_vec(true)?;
assert!(alice_sec.starts_with(b"-----BEGIN PGP PRIVATE KEY BLOCK-----"));
Re-exports§
pub use sop;
Structs§
- A collection of certs.
- A collection of keys.
SOP
implementation based on Sequoia PGP.- A collection of signatures.
Traits§
- Main entry point to the Stateless OpenPGP Interface.