cryptoHash static method

Uint8List cryptoHash(
  1. Uint8List i
)

Implementation

static Uint8List cryptoHash(Uint8List i) {
  final _out = calloc<Uint8>(cryptoHashBytes);
  final _i = i.toPointer();
  try {
    _cryptoHash.hash(_out, _i, i.length).mustSucceed('crypto_hash');
    return _out.toList(cryptoHashBytes);
  } finally {
    calloc.free(_out);
    calloc.free(_i);
  }
}