Struct

GLibHmac

Description [src]

struct GHmac {
  /* No available fields */
}

An opaque structure representing a HMAC operation. To create a new GHmac, use g_hmac_new(). To free a GHmac, use g_hmac_unref().

Available since:2.30

Functions

g_hmac_new

Creates a new GHmac, using the digest algorithm digest_type. If the digest_type is not known, NULL is returned. A GHmac can be used to compute the HMAC of a key and an arbitrary binary blob, using different hashing algorithms.

Available since: 2.30

Instance methods

g_hmac_copy

Copies a GHmac. If hmac has been closed, by calling g_hmac_get_string() or g_hmac_get_digest(), the copied HMAC will be closed as well.

Available since: 2.30

g_hmac_get_digest

Gets the digest from checksum as a raw binary array and places it into buffer. The size of the digest depends on the type of checksum.

Available since: 2.30

g_hmac_get_string

Gets the HMAC as a hexadecimal string.

Available since: 2.30

g_hmac_ref

Atomically increments the reference count of hmac by one.

Available since: 2.30

g_hmac_unref

Atomically decrements the reference count of hmac by one.

Available since: 2.30

g_hmac_update

Feeds data into an existing GHmac.

Available since: 2.30