[−][src]Trait sequoia_openpgp::crypto::Decryptor
Decrypts a message.
This is a low-level mechanism to decrypt an arbitrary OpenPGP ciphertext. Using this trait allows Sequoia to perform all operations involving decryption to use a variety of secret key storage mechanisms (e.g. smart cards).
Required methods
fn public(&self) -> &Key<PublicParts, UnspecifiedRole>
Returns a reference to the public key.
fn decrypt(&mut self, ciphertext: &Ciphertext) -> Result<SessionKey>
Decrypts ciphertext
, returning the plain session key.
Implementors
impl Decryptor for KeyPair
[src]
fn public(&self) -> &Key<PublicParts, UnspecifiedRole>
[src]
fn decrypt(&mut self, ciphertext: &Ciphertext) -> Result<SessionKey>
[src]
Creates a signature over the digest
produced by hash_algo
.