A library designed to make access to GnuPG easier for applications. It provides a high-level Crypto API for encryption, decryption, signing, signature verification, and key management. Currently it uses GnuPG as its back-end, but the API is not restricted to this engine.
- GPG - GPGME is an API wrapper around GnuPG, which parses the output of GnuPG.
- Context - The Context object represents a GPG instance
- Data - Data Object, contains encrypted and/or unencrypted data
- Key - A Key from the Keyring
- DecryptResult - decrypt result of OP
- EncryptResult - encrypt result of OP
- EngineInfo - EngineInfo as List
- InvalidKey - list of invalid keys
- KeySig - A signature on a UserID
- Recipient - An receipient
- SigNotation - A signature notation
- SignResult - sign result of OP
- Signature - A Signature
- SubKey - A subkey from a Key
- UserID - A UserID from a Key
- VerifyResult - verify result of OP
- AuditLogFlag - Audit log function flags
- DataEncoding - Encoding modes of Data objects
- EncryptFlags - Encryption Flags
- ExportMode - Export modes used by Context
- HashAlgorithm - Hash Algorithms from libgcrypt
- KeylistMode - Keylist modes used by Context
- PKAStatus - PKA Status
- Protocol - Protocols
- PublicKeyAlgorithm - Public Key Algorithms from libgcrypt
- SigMode - Signature modes
- SigNotationFlags - Signature notation flags
- Sigsum - Flags used for the summary field in a Signature
- StatusCode - Edit Operation Stati
- Validity - Validities for a trust item or key
- public delegate Error passphrase_callback (void* hook, string uid_hint, string passphrase_info, bool prev_was_bad, int fd)
- public unowned string check_version (string? required_version = null)
Get version of libgpgme Always call this function before using gpgme, it initializes some stuff
- public Error engine_check_version (Protocol proto)
Verify that the engine implementing proto is installed and available.
- public Error get_engine_info (out EngineInfo? engine_info)
Get information about the configured engines. The returned data is valid until the next set_engine_info() call.
- public unowned string get_hash_algorithm_name (HashAlgorithm algo)
- public unowned string get_protocol_name (Protocol p)
- public unowned string get_public_key_algorithm_name (PublicKeyAlgorithm algo)
- public unowned string strerror (Error err)
Like strerror_r, but returns a pointer to the string. This method is not thread safe!
- public int strerror_r (Error err, uint8 buf)
Return the error string for ERR in the user-supplied buffer BUF of size BUFLEN. This function is thread-safe, if a thread-safe strerror_r() function is provided by the system. If the function succeeds, 0 is returned and BUF contains the string describing the error. If the buffer was not large enough, ERANGE is returned and BUF contains as much of the beginning of the error string as fits into the buffer. Returns Error Status Code.