digest method
Returns the final hash digest as a List<int>.
This method calls the 'finish' method to complete the hash computation if it has not already been finished, and then returns the hash digest as a List<int>.
Returns:
- The final hash digest as a List<int>.
Implementation
@override
List<int> digest() {
List<int> out = List<int>.filled(getDigestLength, 0);
finish(out);
return out;
}