pub struct SQOP<'s> { /* private fields */ }
Expand description
SOP
implementation based on Sequoia PGP.
Implementations§
Source§impl<'s> SQOP<'s>
impl<'s> SQOP<'s>
Sourcepub fn with_policy(policy: &'s dyn Policy) -> Self
pub fn with_policy(policy: &'s dyn Policy) -> Self
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§
Source§impl<'s> Load<'s, SQOP<'s>> for Certs<'s>
impl<'s> Load<'s, SQOP<'s>> for Certs<'s>
Source§fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
Loads objects like certs and keys from the given reader.
Source§fn source_name(&self) -> Option<&str>
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,
fn from_stdin(sop: &'s S) -> Result<Self, Error>where
Self: Sized,
Loads objects like certs and keys from stdin.
Source§impl<'s> Load<'s, SQOP<'s>> for Keys<'s>
impl<'s> Load<'s, SQOP<'s>> for Keys<'s>
Source§fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
Loads objects like certs and keys from the given reader.
Source§fn source_name(&self) -> Option<&str>
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,
fn from_stdin(sop: &'s S) -> Result<Self, Error>where
Self: Sized,
Loads objects like certs and keys from stdin.
Source§impl<'s> Load<'s, SQOP<'s>> for Sigs<'s>
impl<'s> Load<'s, SQOP<'s>> for Sigs<'s>
Source§fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
fn from_reader(
sop: &'s SQOP<'_>,
source: &mut (dyn Read + Send + Sync),
source_name: Option<String>,
) -> Result<Self>where
Self: Sized,
Loads objects like certs and keys from the given reader.
Source§fn source_name(&self) -> Option<&str>
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,
fn from_stdin(sop: &'s S) -> Result<Self, Error>where
Self: Sized,
Loads objects like certs and keys from stdin.
Source§impl<'s> SOP<'s> for SQOP<'s>
impl<'s> SOP<'s> for SQOP<'s>
Source§fn generate_key(
&'s self,
) -> Result<Box<dyn GenerateKey<'_, SQOP<'_>, Keys<'_>> + 's>>
fn generate_key( &'s self, ) -> Result<Box<dyn GenerateKey<'_, SQOP<'_>, Keys<'_>> + 's>>
Generates a Secret Key. Read more
Source§fn change_key_password(
&'s self,
) -> Result<Box<dyn ChangeKeyPassword<'_, SQOP<'_>, Keys<'_>> + 's>>
fn change_key_password( &'s self, ) -> Result<Box<dyn ChangeKeyPassword<'_, SQOP<'_>, Keys<'_>> + 's>>
Updates a key’s password. Read more
Source§fn revoke_key(
&'s self,
) -> Result<Box<dyn RevokeKey<'_, SQOP<'s>, Certs<'_>, Keys<'_>> + 's>>
fn revoke_key( &'s self, ) -> Result<Box<dyn RevokeKey<'_, SQOP<'s>, Certs<'_>, Keys<'_>> + 's>>
Creates a Revocation Certificate. Read more
Source§fn extract_cert(
&'s self,
) -> Result<Box<dyn ExtractCert<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
fn extract_cert( &'s self, ) -> Result<Box<dyn ExtractCert<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
Extracts a Certificate from a Secret Key. Read more
Source§fn update_key(
&'s self,
) -> Result<Box<dyn UpdateKey<'_, Self, Self::Certs, Self::Keys> + 's>>
fn update_key( &'s self, ) -> Result<Box<dyn UpdateKey<'_, Self, Self::Certs, Self::Keys> + 's>>
Keeps a Secret Key Up-To-Date. Read more
Source§fn merge_certs(
&'s self,
) -> Result<Box<dyn MergeCerts<'_, Self, Self::Certs> + 's>>
fn merge_certs( &'s self, ) -> Result<Box<dyn MergeCerts<'_, Self, Self::Certs> + 's>>
Merge OpenPGP Certificates. Read more
Source§fn certify_userid(
&'s self,
) -> Result<Box<dyn CertifyUserID<'_, Self, Self::Certs, Self::Keys> + 's>>
fn certify_userid( &'s self, ) -> Result<Box<dyn CertifyUserID<'_, Self, Self::Certs, Self::Keys> + 's>>
Certify OpenPGP Certificate User IDs. Read more
Source§fn validate_userid(
&'s self,
) -> Result<Box<dyn ValidateUserID<'_, Self, Self::Certs> + 's>>
fn validate_userid( &'s self, ) -> Result<Box<dyn ValidateUserID<'_, Self, Self::Certs> + 's>>
Validate a User ID in an OpenPGP Certificate. Read more
Source§fn sign(
&'s self,
) -> Result<Box<dyn Sign<'_, SQOP<'_>, Keys<'_>, Sigs<'_>> + 's>>
fn sign( &'s self, ) -> Result<Box<dyn Sign<'_, SQOP<'_>, Keys<'_>, Sigs<'_>> + 's>>
Creates Detached Signatures. Read more
Source§fn verify(
&'s self,
) -> Result<Box<dyn Verify<'_, SQOP<'_>, Certs<'_>, Sigs<'_>> + 's>>
fn verify( &'s self, ) -> Result<Box<dyn Verify<'_, SQOP<'_>, Certs<'_>, Sigs<'_>> + 's>>
Verifies Detached Signatures. Read more
Source§fn encrypt(
&'s self,
) -> Result<Box<dyn Encrypt<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
fn encrypt( &'s self, ) -> Result<Box<dyn Encrypt<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
Encrypts a Message. Read more
Source§fn decrypt(
&'s self,
) -> Result<Box<dyn Decrypt<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
fn decrypt( &'s self, ) -> Result<Box<dyn Decrypt<'_, SQOP<'_>, Certs<'_>, Keys<'_>> + 's>>
Decrypts a Message. Read more
Source§fn armor(&'s self) -> Result<Box<dyn Armor<'_> + 's>>
fn armor(&'s self) -> Result<Box<dyn Armor<'_> + 's>>
Converts binary OpenPGP data to ASCII. Read more
Source§fn dearmor(&'s self) -> Result<Box<dyn Dearmor<'_> + 's>>
fn dearmor(&'s self) -> Result<Box<dyn Dearmor<'_> + 's>>
Converts ASCII OpenPGP data to binary. Read more
Source§fn inline_detach(&'s self) -> Result<Box<dyn InlineDetach<'_, Sigs<'_>> + 's>>
fn inline_detach(&'s self) -> Result<Box<dyn InlineDetach<'_, Sigs<'_>> + 's>>
Splits Signatures from an Inline-Signed Message. Read more
Source§fn inline_verify(
&'s self,
) -> Result<Box<dyn InlineVerify<'_, SQOP<'_>, Certs<'_>> + 's>>
fn inline_verify( &'s self, ) -> Result<Box<dyn InlineVerify<'_, SQOP<'_>, Certs<'_>> + 's>>
Verifies an Inline-Signed Message. Read more
Source§fn inline_sign(
&'s self,
) -> Result<Box<dyn InlineSign<'_, SQOP<'_>, Keys<'_>> + 's>>
fn inline_sign( &'s self, ) -> Result<Box<dyn InlineSign<'_, SQOP<'_>, Keys<'_>> + 's>>
Creates an Inline-Signed Message. Read more
Source§fn spec_version(&'s self) -> &'static str
fn spec_version(&'s self) -> &'static str
Gets SOP version information. Read more
Auto Trait Implementations§
impl<'s> Freeze for SQOP<'s>
impl<'s> !RefUnwindSafe for SQOP<'s>
impl<'s> Send for SQOP<'s>
impl<'s> Sync for SQOP<'s>
impl<'s> Unpin for SQOP<'s>
impl<'s> !UnwindSafe for SQOP<'s>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more