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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref