Trait sop::SOP[][src]

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 version<'a>(&'a self) -> Result<Box<dyn Version<'_> + 'a>>[src]

Gets version information.

fn generate_key<'a>(&'a self) -> Result<Box<dyn GenerateKey<'_> + 'a>>[src]

Generates a Secret Key.

Customize the operation using the builder GenerateKey.

fn extract_cert<'a>(&'a self) -> Result<Box<dyn ExtractCert<'_> + 'a>>[src]

Extracts a Certificate from a Secret Key.

Customize the operation using the builder ExtractCert.

fn sign<'a>(&'a self) -> Result<Box<dyn Sign<'_> + 'a>>[src]

Creates Detached Signatures.

Customize the operation using the builder Sign.

fn verify<'a>(&'a self) -> Result<Box<dyn Verify<'_> + 'a>>[src]

Verifies Detached Signatures.

Customize the operation using the builder Verify.

fn encrypt<'a>(&'a self) -> Result<Box<dyn Encrypt<'_> + 'a>>[src]

Encrypts a Message.

Customize the operation using the builder Encrypt.

fn decrypt<'a>(&'a self) -> Result<Box<dyn Decrypt<'_> + 'a>>[src]

Decrypts a Message.

Customize the operation using the builder Decrypt.

fn armor<'a>(&'a self) -> Result<Box<dyn Armor<'_> + 'a>>[src]

Converts binary OpenPGP data to ASCII.

Customize the operation using the builder Armor.

fn dearmor<'a>(&'a self) -> Result<Box<dyn Dearmor<'_> + 'a>>[src]

Converts ASCII OpenPGP data to binary.

Customize the operation using the builder Dearmor.

Implementors