guid_hash_data
Description:
[ Version ( since = "1.2.5" ) ]
public string guid_hash_data (uint8 data, size_t datasz, GuidFlags flags)
Returns a GUID for some data.
This uses a hash and so even small differences in the data
will produce radically different return values.
The implementation is taken from RFC4122, Section 4.1.3; specifically using a type-5 SHA-1 hash.
Parameters:
data |
data to hash |
datasz |
length of |
flags |
some fwupdguidflags, e.g. fwupd_guid_flag_namespace_microsoft |
Returns:
A new GUID, or null for internal error |
Namespace: Fwupd
Package: fwupd