compute_for_bytes


Description:

[ Version ( since = "2.34" ) ]
[ CCode ( cname = "g_compute_checksum_for_bytes" ) ]
public static string compute_for_bytes (ChecksumType checksum_type, Bytes data)

Computes the checksum for a binary data.

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

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.