cryptoHashOff static method

int cryptoHashOff(
  1. Uint8List out,
  2. Uint8List m,
  3. int moff,
  4. int n,
)

int cryptoHash(Uint8List out, Uint8List m, long n)

Implementation

static int cryptoHashOff(Uint8List out, Uint8List m, final int moff, int n) {
  Uint8List input = Uint8List(n);
  for (int i = 0; i < n; ++i) {
    input[i] = m[i];
  }
  Blake2bDigest blake2b = Blake2bDigest(digestSize: n);
  blake2b.update(input, 0, input.length);
  blake2b.doFinal(out, moff);

  return 0;
}