The returned string should be freed with [glib.global.gfree] when done using it.
computeHmacForData
fn
string computeHmacForData(glib.types.ChecksumType digestType, ubyte[] key, ubyte[] data)Computes the HMAC for a binary data of length. This is a convenience wrapper for [glib.hmac.Hmac.new_], [glib.hmac.Hmac.getString] and [glib.hmac.Hmac.unref].
The hexadecimal string returned will be in lower case.
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 |
Returns
the HMAC of the binary data as a string in hexadecimal.