Pkcs7Context

A PKCS7 crypto context.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new pkcs7 crypto context object.

Members

Functions

self
Pkcs7Context self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
Pkcs7ContextGidBuilder builder()

Get builder for gmime.pkcs7_context.Pkcs7Context

Inherited Members

From CryptoContext

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
CryptoContext self()

Returns this, for use in with statements.

builder
CryptoContextGidBuilder builder()

Get builder for gmime.crypto_context.CryptoContext

decrypt
gmime.decrypt_result.DecryptResult decrypt(gmime.types.DecryptFlags flags, string sessionKey, gmime.stream.Stream istream, gmime.stream.Stream ostream)

Decrypts the ciphertext input stream and writes the resulting cleartext to the output stream.

digestId
gmime.types.DigestAlgo digestId(string name)

Gets the digest id based on the digest name.

digestName
string digestName(gmime.types.DigestAlgo digest)

Gets the digest name based on the digest id digest.

encrypt
int encrypt(bool sign, string userid, gmime.types.EncryptFlags flags, string[] recipients, gmime.stream.Stream istream, gmime.stream.Stream ostream)

Encrypts (and optionally signs) the cleartext input stream and writes the resulting ciphertext to the output stream.

exportKeys
int exportKeys(string[] keys, gmime.stream.Stream ostream)

Exports the keys/certificates in keys to the stream ostream from the key/certificate database controlled by ctx.

getEncryptionProtocol
string getEncryptionProtocol()

Gets the encryption protocol for the crypto context.

getKeyExchangeProtocol
string getKeyExchangeProtocol()

Gets the key exchange protocol for the crypto context.

getSignatureProtocol
string getSignatureProtocol()

Gets the signature protocol for the crypto context.

importKeys
int importKeys(gmime.stream.Stream istream)

Imports a stream of keys/certificates contained within istream into the key/certificate database controlled by ctx.

sign
int sign(bool detach, string userid, gmime.stream.Stream istream, gmime.stream.Stream ostream)

Signs the input stream and writes the resulting signature to the output stream.

verify
gmime.signature_list.SignatureList verify(gmime.types.VerifyFlags flags, gmime.stream.Stream istream, gmime.stream.Stream sigstream, gmime.stream.Stream ostream)

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.