hashTo method

  1. @override
void hashTo({
  1. required Uint8List data,
  2. required Uint8List output,
})
override

Implementation

@override
void hashTo({required Uint8List data, required Uint8List output}) {
  for (int seed = 0; seed < blocks; seed++) {
    final hashedBytes = XXHash64(seed).convert(data).bytes.reversed.toList();

    for (var i = 0; i < 8; i++) {
      output[(seed * 8) + i] = hashedBytes[i];
    }
  }
}