CryptoContext
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_mime_crypto_context_get_type ()" ) ]
public class CryptoContext :
Object
A crypto context for use with MIME.
Content:
Creation methods:
Methods:
- public virtual DecryptResult decrypt (DecryptFlags flags, string? session_key, Stream istream, Stream ostream) throws Error
Decrypts the ciphertext input stream and writes the resulting cleartext to
the output stream.
- public virtual DigestAlgo digest_id (string name)
Gets the digest id based on the digest name.
- public virtual unowned string? digest_name (DigestAlgo digest)
Gets the digest name based on the digest id digest
.
- public virtual int encrypt (bool sign, string? userid, EncryptFlags flags, GenericArray<string> recipients, Stream istream, Stream ostream) throws Error
Encrypts (and optionally signs) the cleartext input stream and writes the
resulting ciphertext to the output stream.
- public virtual int export_keys (string keys, Stream ostream) throws Error
Exports the keys/certificates in keys
to the stream
ostream
from the key/certificate database controlled by this.
- public virtual unowned string? get_encryption_protocol ()
Gets the encryption protocol for the crypto context.
- public virtual unowned string? get_key_exchange_protocol ()
Gets the key exchange protocol for the crypto context.
- public virtual unowned string? get_signature_protocol ()
Gets the signature protocol for the crypto context.
- public virtual int import_keys (Stream istream) throws Error
Imports a stream of keys/certificates contained within istream
into the key/certificate database controlled by this.
- public virtual int sign (bool detach, string userid, Stream istream, Stream ostream) throws Error
Signs the input stream and writes the resulting signature to the output
stream.
- public virtual SignatureList? verify (VerifyFlags flags, Stream istream, Stream? sigstream, Stream? ostream) throws Error
Verifies the signature.
Fields:
Inherited Members:
All known members inherited from class GLib.Object