Previous: Public Key Algorithms, Up: Algorithms


4.2 Hash Algorithms

Hash (message digest) algorithms are used to compress a long message to make it suitable for public key cryptography.

— Data type: enum gpgme_hash_algo_t

The gpgme_hash_algo_t type specifies the set of all hash algorithms that are supported by GPGME. Possible values are:

GPGME_MD_MD5
GPGME_MD_SHA1
GPGME_MD_RMD160
GPGME_MD_MD2
GPGME_MD_TIGER
GPGME_MD_HAVAL
GPGME_MD_SHA256
GPGME_MD_SHA384
GPGME_MD_SHA512
GPGME_MD_MD4
GPGME_MD_CRC32
GPGME_MD_CRC32_RFC1510
GPGME_MD_CRC24_RFC2440

— Function: const char * gpgme_hash_algo_name (gpgme_hash_algo_t algo)

The function gpgme_hash_algo_name returns a pointer to a statically allocated string containing a description of the hash algorithm algo. This string can be used to output the name of the hash algorithm to the user.

If algo is not a valid hash algorithm, NULL is returned.