code: protected int getDigestOffset1(byte[] handshake, int bufferOffset) {
          bufferOffset += 8;
          int offset = handshake[bufferOffset] & 0xff;
          bufferOffset++;
          offset += handshake[bufferOffset] & 0xff;
          bufferOffset++;
          offset += handshake[bufferOffset] & 0xff;
          bufferOffset++;
          offset += handshake[bufferOffset] & 0xff;
          int res = (offset % 728) + 12;
          if (res + DIGEST_LENGTH > 771) {
              log.error("Invalid digest offset calc: {}", res);
          }
          return res;
      }
docs: Returns a digest byte offset.
  
  @param handshake handshake sequence
  @param bufferOffset buffer offset
  @return digest offset