finish method

void finish()
inherited

Implementation

void finish() {
  _adjustByteCounts();

  var lowBitLength = Register64(_byteCount1)..shiftl(3);
  var hiBitLength = _byteCount2;

  // add the pad bytes.
  updateByte(128);

  while (_wordBufferOffset != 0) {
    updateByte(0);
  }

  _processLength(lowBitLength, hiBitLength);

  _processBlock();
}