Method

GLibHmacget_digest

since: 2.30

Declaration

void
g_hmac_get_digest (
  GHmac* hmac,
  guint8* buffer,
  gsize* digest_len
)

Description

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().

Available since: 2.30

Parameters

buffer

Type: An array of guint8

Output buffer.

The length of the array is specified in the digest_len argument.
The data is owned by the caller of the function.
digest_len

Type: gsize*

An inout parameter. The caller initializes it to the size of buffer. After the call it contains the length of the digest.

The argument will be modified by the function.