computeHmacForBytes

fun computeHmacForBytes(digestType: ChecksumType, key: Bytes, data: Bytes): String

Computes the HMAC for a binary @data. This is a convenience wrapper for g_hmac_new(), g_hmac_get_string() and g_hmac_unref().

The hexadecimal string returned will be in lower case.

Return

the HMAC of the binary data as a string in hexadecimal. The returned string should be freed with g_free() when done using it.

Since

2.50

Parameters

digestType

a #GChecksumType to use for the HMAC

key

the key to use in the HMAC

data

binary blob to compute the HMAC of