Crate sequoia_sop[−][src]
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::*;
let sop = SQOP::default();
let alice_sec = sop.generate_key()?
.userid("Alice Lovelace <alice@openpgp.example>")
.generate()?
.to_vec()?;
assert!(alice_sec.starts_with(b"-----BEGIN PGP PRIVATE KEY BLOCK-----"));
Re-exports
pub use sop;
Structs
SOP
implementation based on Sequoia PGP.
Traits
The Stateless OpenPGP Protocol.