Struct RPGSOP

Source
pub struct RPGSOP {}

Trait Implementations§

Source§

impl Clone for RPGSOP

Source§

fn clone(&self) -> RPGSOP

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for RPGSOP

Source§

fn default() -> RPGSOP

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

impl Load<'_, RPGSOP> for Certs

Source§

fn from_reader( _sop: &RPGSOP, source: &mut (dyn Read + Send + Sync), source_name: Option<String>, ) -> Result<Self>

Loads objects like certs and keys from the given reader.
Source§

fn source_name(&self) -> Option<&str>

Returns the source name, if any.
Source§

fn from_stdin(sop: &'s S) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from stdin.
Source§

fn from_file<P>(sop: &'s S, path: P) -> Result<Self, Error>
where Self: Sized, P: AsRef<Path>,

Loads objects like certs and keys from the given file.
Source§

fn from_bytes(sop: &'s S, source: &[u8]) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from the given byte slice.
Source§

impl Load<'_, RPGSOP> for Keys

Source§

fn from_reader( _sop: &RPGSOP, source: &mut (dyn Read + Send + Sync), source_name: Option<String>, ) -> Result<Self>

Loads objects like certs and keys from the given reader.
Source§

fn source_name(&self) -> Option<&str>

Returns the source name, if any.
Source§

fn from_stdin(sop: &'s S) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from stdin.
Source§

fn from_file<P>(sop: &'s S, path: P) -> Result<Self, Error>
where Self: Sized, P: AsRef<Path>,

Loads objects like certs and keys from the given file.
Source§

fn from_bytes(sop: &'s S, source: &[u8]) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from the given byte slice.
Source§

impl Load<'_, RPGSOP> for Sigs

Source§

fn from_reader( _sop: &RPGSOP, source: &mut (dyn Read + Send + Sync), source_name: Option<String>, ) -> Result<Self>

Loads objects like certs and keys from the given reader.
Source§

fn source_name(&self) -> Option<&str>

Returns the source name, if any.
Source§

fn from_stdin(sop: &'s S) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from stdin.
Source§

fn from_file<P>(sop: &'s S, path: P) -> Result<Self, Error>
where Self: Sized, P: AsRef<Path>,

Loads objects like certs and keys from the given file.
Source§

fn from_bytes(sop: &'s S, source: &[u8]) -> Result<Self, Error>
where Self: Sized,

Loads objects like certs and keys from the given byte slice.
Source§

impl SOP<'_> for RPGSOP

Source§

type Keys = Keys

Secret keys.
Source§

type Certs = Certs

Public keys.
Source§

type Sigs = Sigs

Signatures.
Source§

fn version(&self) -> Result<Box<dyn Version<'_>>>

Gets version information. Read more
Source§

fn sopv_version(&self) -> Result<&'static str>

Completeness of the sopv subset Read more
Source§

fn generate_key( &self, ) -> Result<Box<dyn GenerateKey<'_, Self, Self::Keys> + '_>>

Generates a Secret Key. Read more
Source§

fn change_key_password( &self, ) -> Result<Box<dyn ChangeKeyPassword<'_, Self, Self::Keys>>>

Updates a key’s password. Read more
Source§

fn revoke_key( &self, ) -> Result<Box<dyn RevokeKey<'_, Self, Self::Certs, Self::Keys>>>

Creates a Revocation Certificate. Read more
Source§

fn extract_cert( &self, ) -> Result<Box<dyn ExtractCert<'_, Self, Self::Certs, Self::Keys> + '_>>

Extracts a Certificate from a Secret Key. Read more
Source§

fn sign(&self) -> Result<Box<dyn Sign<'_, Self, Self::Keys, Self::Sigs> + '_>>

Creates Detached Signatures. Read more
Source§

fn verify( &self, ) -> Result<Box<dyn Verify<'_, Self, Self::Certs, Self::Sigs> + '_>>

Verifies Detached Signatures. Read more
Source§

fn encrypt( &self, ) -> Result<Box<dyn Encrypt<'_, Self, Self::Certs, Self::Keys> + '_>>

Encrypts a Message. Read more
Source§

fn decrypt( &self, ) -> Result<Box<dyn Decrypt<'_, Self, Self::Certs, Self::Keys> + '_>>

Decrypts a Message. Read more
Source§

fn armor(&self) -> Result<Box<dyn Armor<'_>>>

Converts binary OpenPGP data to ASCII. Read more
Source§

fn dearmor(&self) -> Result<Box<dyn Dearmor<'_>>>

Converts ASCII OpenPGP data to binary. Read more
Source§

fn inline_detach(&self) -> Result<Box<dyn InlineDetach<'_, Self::Sigs>>>

Splits Signatures from an Inline-Signed Message. Read more
Source§

fn inline_verify( &self, ) -> Result<Box<dyn InlineVerify<'_, Self, Self::Certs> + '_>>

Verifies an Inline-Signed Message. Read more
Source§

fn inline_sign(&self) -> Result<Box<dyn InlineSign<'_, Self, Self::Keys> + '_>>

Creates an Inline-Signed Message. Read more
Source§

fn update_key( &self, ) -> Result<Box<dyn UpdateKey<'_, Self, Self::Certs, Self::Keys> + '_>>

Keeps a Secret Key Up-To-Date. Read more
Source§

fn merge_certs(&self) -> Result<Box<dyn MergeCerts<'_, Self, Self::Certs> + '_>>

Merge OpenPGP Certificates. Read more
Source§

fn certify_userid( &self, ) -> Result<Box<dyn CertifyUserID<'_, Self, Self::Certs, Self::Keys> + '_>>

Certify OpenPGP Certificate User IDs. Read more
Source§

fn validate_userid( &self, ) -> Result<Box<dyn ValidateUserID<'_, Self, Self::Certs> + '_>>

Validate a User ID in an OpenPGP Certificate. Read more
Source§

fn debug(&mut self, enable: bool)

Controls debugging. Read more
Source§

fn spec_version(&'s self) -> &'static str

Gets SOP version information. Read more
Source§

impl<'s> SopRef<'s, RPGSOP> for Certs

Source§

fn sop(&self) -> &'s RPGSOP

Returns a reference to SOP.
Source§

impl<'s> SopRef<'s, RPGSOP> for Keys

Source§

fn sop(&self) -> &'s RPGSOP

Returns a reference to SOP.
Source§

impl<'s> SopRef<'s, RPGSOP> for Sigs

Source§

fn sop(&self) -> &'s RPGSOP

Returns a reference to SOP.
Source§

impl Copy for RPGSOP

Auto Trait Implementations§

§

impl Freeze for RPGSOP

§

impl RefUnwindSafe for RPGSOP

§

impl Send for RPGSOP

§

impl Sync for RPGSOP

§

impl Unpin for RPGSOP

§

impl UnwindSafe for RPGSOP

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V