digest method

  1. @override
List<int> digest([
  1. int outlen = 32
])
override

Generates the final hash digest by assembling and returning the hash state in a List<int>.

This function produces the hash digest by combining the current hash state into a single List<int> output. It finalizes the hash if it hasn't been finished, effectively completing the hash computation and returning the result.

Returns the List<int> containing the computed hash digest.

Implementation

@override
List<int> digest([int outlen = 32]) {
  final out = List<int>.filled(outlen, 0);
  finish(out);
  return out;
}