blake3 function

List<int> blake3(
  1. List<int> input, [
  2. dynamic outputLength = 32
])

Implementation

List<int> blake3(List<int> input, [outputLength = 32]) {
  if (!(input is Uint8List)) {
    input = Uint8List.fromList(input);
  }

  final output = Uint8List(outputLength);

  _ctx.reset();
  _ctx.update(input);
  _ctx.finalize(output);

  return output;
}