Struct sequoia_sop::SQOP[][src]

pub struct SQOP<'a> { /* fields omitted */ }
Expand description

SOP implementation based on Sequoia PGP.

Implementations

impl<'a> SQOP<'a>[src]

pub fn with_policy(policy: &'a dyn Policy) -> Self[src]

Creates a sop::SOP implementation with an explicit sequoia_openpgp::policy::Policy.

To use the default sequoia_openpgp::policy::StandardPolicy, use SQOP::default.

Trait Implementations

impl Default for SQOP<'_>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<'a> SOP for SQOP<'a>[src]

fn version<'b>(&'b self) -> Result<Box<dyn Version<'_> + 'b>>[src]

Gets version information.

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

Generates a Secret Key. Read more

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

Extracts a Certificate from a Secret Key. Read more

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

Creates Detached Signatures. Read more

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

Verifies Detached Signatures. Read more

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

Encrypts a Message. Read more

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

Decrypts a Message. Read more

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

Converts binary OpenPGP data to ASCII. Read more

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

Converts ASCII OpenPGP data to binary. Read more

impl Version<'_> for &SQOP<'_>[src]

fn name(&self) -> String[src]

Returns the implementation’s name.

fn version(&self) -> String[src]

Returns the implementation’s version string.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SQOP<'a>

impl<'a> Send for SQOP<'a>

impl<'a> Sync for SQOP<'a>

impl<'a> Unpin for SQOP<'a>

impl<'a> !UnwindSafe for SQOP<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.