code: public static boolean sequenceEqualConstantTime(byte[] self, byte[] other) {
          if (self == null) {
              throw new IllegalArgumentException("self");
          }
  
          if (other == null) {
              throw new IllegalArgumentException("other");
          }
  
          // Constant time comparison of two byte arrays
          long difference = (self.length & 0xffffffffL) ^ (other.length & 0xffffffffL);
  
          for (int i = 0; i < self.length && i < other.length; i++) {
              difference |= (self[i] ^ other[i]) & 0xffffffffL;
          }
  
          return difference == 0;
      }
docs: Compares two byte arrays in constant time.
  
  @param self
  The first byte array to compare
  @param other
  The second byte array to compare
  @return
  True if the two byte arrays are equal.