finish method

  1. @override
HMAC finish(
  1. List<int> out
)
override

Finalizes the hash computation and stores the hash state in the provided out. Parameters:

  • out: In which the hash digest is stored.

Implementation

@override
HMAC finish(List<int> out) {
  _ensureAlive("HMAC.finish", _cleaned, null);
  if (_finished) {
    _outer.finish(out);
    return this;
  }

  _inner.finish(out);

  _outer.update(out.sublist(0, getDigestLength)).finish(out);

  _finished = true;

  return this;
}