hmacSha512HashHalves static method
Calculate the HMAC-SHA-512 hash of the input data using the provided key and split the result into two halves. Return a tuple containing both halves
Implementation
static Tuple<List<int>, List<int>> hmacSha512HashHalves(
List<int> key, List<int> data) {
final bytes = hmacSha512Hash(key, data);
return Tuple(bytes.sublist(0, hmacSha512DigestSize ~/ 2),
bytes.sublist(hmacSha512DigestSize ~/ 2));
}