pub trait SOP {
fn version<'a>(&'a self) -> Result<Box<dyn Version<'_> + 'a>>;
fn generate_key<'a>(&'a self) -> Result<Box<dyn GenerateKey<'_> + 'a>>;
fn extract_cert<'a>(&'a self) -> Result<Box<dyn ExtractCert<'_> + 'a>>;
fn sign<'a>(&'a self) -> Result<Box<dyn Sign<'_> + 'a>>;
fn verify<'a>(&'a self) -> Result<Box<dyn Verify<'_> + 'a>>;
fn encrypt<'a>(&'a self) -> Result<Box<dyn Encrypt<'_> + 'a>>;
fn decrypt<'a>(&'a self) -> Result<Box<dyn Decrypt<'_> + 'a>>;
fn armor<'a>(&'a self) -> Result<Box<dyn Armor<'_> + 'a>>;
fn dearmor<'a>(&'a self) -> Result<Box<dyn Dearmor<'_> + 'a>>;
}
Expand description
The Stateless OpenPGP Protocol.
Required methods
fn generate_key<'a>(&'a self) -> Result<Box<dyn GenerateKey<'_> + 'a>>
fn generate_key<'a>(&'a self) -> Result<Box<dyn GenerateKey<'_> + 'a>>
Generates a Secret Key.
Customize the operation using the builder GenerateKey
.
fn extract_cert<'a>(&'a self) -> Result<Box<dyn ExtractCert<'_> + 'a>>
fn extract_cert<'a>(&'a self) -> Result<Box<dyn ExtractCert<'_> + 'a>>
Extracts a Certificate from a Secret Key.
Customize the operation using the builder ExtractCert
.
Creates Detached Signatures.
Customize the operation using the builder Sign
.
Verifies Detached Signatures.
Customize the operation using the builder Verify
.
Encrypts a Message.
Customize the operation using the builder Encrypt
.
Decrypts a Message.
Customize the operation using the builder Decrypt
.
Converts binary OpenPGP data to ASCII.
Customize the operation using the builder Armor
.