code: public int getDHOffset(int algorithm, byte[] handshake, int bufferOffset) {
          switch (algorithm) {
              case 1:
                  return getDHOffset2(handshake, bufferOffset);
              default:
              case 0:
                  return getDHOffset1(handshake, bufferOffset);
          }
      }
docs: Returns the DH offset from an array of bytes.
  
  @param algorithm validation algorithm
  @param handshake handshake sequence
  @param bufferOffset buffer offset
  @return DH offset