code: public void saveState() {
      s0=h0;
      s1=h1;
      s2=h2;
      s3=h3;
      s4=h4;
      
      saveLength = length;
      
      int position = finalBuffer.position();
      
      finalBuffer.position(0);
      finalBuffer.limit(position);
      
      saveBuffer.clear();
      saveBuffer.put(finalBuffer);
      saveBuffer.flip();
      
      finalBuffer.limit(64);
      finalBuffer.position( position );
    }
docs: Save the current digest state.
  This allows the resuming of a SHA-1 calculation, even after a digest calculation
  is finished with digest().