digest method

  1. @override
HashDigest digest()
override

Finalizes the message-digest and returns a HashDigest

Implementation

@override
HashDigest digest() {
  if (_closed) return _digest!;
  _closed = true;
  _digest = HashDigest($finalize());
  return _digest!;
}