Details
enum GMimeCipherHash
typedef enum {
GMIME_CIPHER_HASH_DEFAULT,
GMIME_CIPHER_HASH_MD2,
GMIME_CIPHER_HASH_MD5,
GMIME_CIPHER_HASH_SHA1,
GMIME_CIPHER_HASH_RIPEMD160,
GMIME_CIPHER_HASH_TIGER192,
GMIME_CIPHER_HASH_HAVAL5160
} GMimeCipherHash; |
struct GMimeCipherContext
struct GMimeCipherContext {
GObject parent_object;
GMimeSession *session;
/* these must be set by the subclass */
const char *sign_protocol;
const char *encrypt_protocol;
const char *key_protocol;
}; |
struct GMimeCipherValidity
struct GMimeCipherValidity; |
g_mime_cipher_hash_id ()
Gets the hash id based on the hash name hash.
g_mime_cipher_hash_name ()
Gets the hash name based on the hash id hash.
g_mime_cipher_sign ()
Signs the input stream and writes the resulting signature to the output stream.
g_mime_cipher_verify ()
Verifies the signature. If istream is a clearsigned stream,
you should pass NULL as the sigstream parameter. Otherwise
sigstream is assumed to be the signature stream and is used to
verify the integirity of the istream.
g_mime_cipher_encrypt ()
Encrypts (and optionally signs) the cleartext input stream and
writes the resulting ciphertext to the output stream.
g_mime_cipher_decrypt ()
Decrypts the ciphertext input stream and writes the resulting
cleartext to the output stream.
g_mime_cipher_import_keys ()
Imports a stream of keys/certificates contained within istream
into the key/certificate database controlled by ctx.
g_mime_cipher_export_keys ()
Exports the keys/certificates in keys to the stream ostream from
the key/certificate database controlled by ctx.
g_mime_cipher_validity_init ()
Initializes the validity structure.
g_mime_cipher_validity_new ()
Creates a new validity structure.
g_mime_cipher_validity_clear ()
Clears the contents of the validity structure.
g_mime_cipher_validity_free ()
Frees the memory used by validity back to the system.
g_mime_cipher_validity_get_valid ()
Gets the validity of the validity structure validity.
g_mime_cipher_validity_set_valid ()
Sets the validness on the validity structure.
g_mime_cipher_validity_get_description ()
Gets the description set on the validity structure validity.
g_mime_cipher_validity_set_description ()
void g_mime_cipher_validity_set_description
(GMimeCipherValidity *validity,
const char *description); |
Sets the description on the validity structure.