Returns this, for use in with statements.
Get builder for gmime.gpg_context.GpgContext
Returns this, for use in with statements.
Get builder for gmime.crypto_context.CryptoContext
Decrypts the ciphertext input stream and writes the resulting cleartext to the output stream.
Gets the digest id based on the digest name.
Gets the digest name based on the digest id digest.
Encrypts (and optionally signs) the cleartext input stream and writes the resulting ciphertext to the output stream.
Exports the keys/certificates in keys to the stream ostream from the key/certificate database controlled by ctx.
Gets the encryption protocol for the crypto context.
Gets the key exchange protocol for the crypto context.
Gets the signature protocol for the crypto context.
Imports a stream of keys/certificates contained within istream into the key/certificate database controlled by ctx.
Signs the input stream and writes the resulting signature to the output stream.
Verifies the signature. If istream is a clearsigned stream, you should pass null as the sigstream parameter and may wish to provide an ostream argument for GMime to output the original plaintext into. Otherwise sigstream is assumed to be the signature stream and is used to verify the integirity of the istream.
A GnuPG crypto context.