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.
Once this function has been called, the #GHmac is closed and can no longer be updated with g_checksum_update().
output buffer
Gets the HMAC as a hexadecimal string.
Once this function has been called the #GHmac can no longer be updated with g_hmac_update().
The hexadecimal characters will be lower case.
Atomically decrements the reference count of hmac
by one.
If the reference count drops to 0, all keys and values will be
destroyed, and all memory allocated by the hash table is released.
This function is MT-safe and may be called from any thread.
Frees the memory allocated for hmac
.
Feeds data
into an existing #GHmac.
The HMAC must still be open, that is g_hmac_get_string() or
g_hmac_get_digest() must not have been called on hmac
.
buffer used to compute the checksum
An opaque structure representing a HMAC operation. To create a new GHmac, use g_hmac_new(). To free a GHmac, use g_hmac_unref().