compute_for_data


Description:

[ CCode ( cname = "g_compute_checksum_for_data" ) ]
public static string compute_for_data (ChecksumType checksum_type, uchar[] data)

Computes the checksum for a binary data of data.length.

This is a convenience wrapper for Checksum, get_string and g_checksum_free.

The hexadecimal string returned will be in lower case.

Parameters:

checksum_type

a ChecksumType

data

binary blob to compute the digest of

length

length of data

Returns:

the digest of the binary data as a string in hexadecimal, or null if Checksum fails for checksum_type. The returned string should be freed with g_free when done using it.