hash512Half function
Computes the first 32 bytes of the SHA-512 hash of the given data
.
This function calculates the SHA-512 hash of the provided data
and returns
the first 32 bytes of the hash as a Uint8List.
Returns a Uint8List containing the first 32 bytes of the SHA-512 hash.
Implementation
Uint8List hash512Half(Uint8List data) {
final sha512 = hash512(data);
return sha512.sublist(0, 32);
}