process method

  1. @override
Uint8List process(
  1. Uint8List data
)
inherited

Process a whole block of blockSize bytes stored in data at once, returning the result in a byte array.

This call is equivalent to processBlock but it allocates the array under the hood.

Implementation

@override
Uint8List process(Uint8List data) {
  var out = Uint8List(getOutputSize(data.length));

  var len = processBytes(data, 0, data.length, out, 0);

  len += doFinal(out, len);

  return Uint8List.view(out.buffer, 0, len);
}