createHash function

Uint8List createHash(
  1. Uint8List buffer
)

Returns the Blake2b (https://en.wikipedia.org/wiki/BLAKE_(hash_function)) digest of the buffer

Implementation

Uint8List createHash(Uint8List buffer) {
  final blake2b = Blake2bDigest(digestSize: digestLength);
  return blake2b.process(buffer);
}