Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Xor (0.32 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

              keyIndex %= keyLength // Reassign to prevent overflow breaking counter.
    
              // Byte xor is experimental in Kotlin so we coerce bytes to int, xor them
              // and convert back to byte.
              val bufferInt: Int = buffer[i].toInt()
              val keyInt: Int = key[keyIndex].toInt()
              buffer[i] = (bufferInt xor keyInt).toByte()
    
              i++
              keyIndex++
            }
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/ppc64.s

    	OR $16711680, R3, R4            // 646400ff
    
    	XOR $1, R3                      // 68630001
    	XOR $1, R3, R4                  // 68640001
    	XOR $-1, R4                     // 3be0ffff7fe42278
    	XOR $-1, R4, R5                 // 3be0ffff7fe52278
    	XOR $65535, R5                  // 68a5ffff
    	XOR $65535, R5, R6              // 68a6ffff
    	XOR $65536, R6                  // 6cc60001
    	XOR $65536, R6, R7              // 6cc70001
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 29 13:14:38 UTC 2024
    - 51K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/asm/testdata/loong64enc3.s

    	OR	$74565, R4, R5			// 5e020014de178d0385781500
    	OR	$4097, R4			// 3e000014de07800384781500
    	OR	$4097, R4, R5			// 3e000014de07800385781500
    	XOR	$74565, R4			// 5e020014de178d0384f81500
    	XOR	$74565, R4, R5			// 5e020014de178d0385f81500
    	XOR	$4097, R4			// 3e000014de07800384f81500
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Jul 29 14:29:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-utils.go

    func hashDeterministicString(m map[string]string) uint64 {
    	// Seed (random)
    	crc := uint64(0xc2b40bbac11a7295)
    	// Xor each value to make order independent
    	for k, v := range m {
    		// Separate key and value with an individual xor with a random number.
    		// Add values of each, so they cannot be trivially collided.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/testdata/s390x.s

    	ORW	$65536, R1            // a51a0001
    	ORW	$-2, R1               // c01dfffffffe
    	XOR	R1, R2                // b9820021
    	XOR	R1, R2, R3            // b9e72031
    	XOR	$1, R1                // c01700000001
    	XOR	$131071, R1           // c0170001ffff
    	XOR	$65536, R1            // c01700010000
    	XOR	$-2, R1               // c0a1fffffffeb982001a
    	XORW	R1, R2                // 1721
    	XORW	R1, R2, R3            // b9f72031
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:49:24 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/riscv64.s

    	AND	$1, X5					// 93f21200
    	OR	X6, X5, X7				// b3e36200
    	OR	X5, X6					// 33635300
    	OR	$1, X5, X6				// 13e31200
    	OR	$1, X5					// 93e21200
    	XOR	X6, X5, X7				// b3c36200
    	XOR	X5, X6					// 33435300
    	XOR	$1, X5, X6				// 13c31200
    	XOR	$1, X5					// 93c21200
    
    	AUIPC	$0, X10					// 17050000
    	AUIPC	$0, X11					// 97050000
    	AUIPC	$1, X10					// 17150000
    	AUIPC	$-524288, X15				// 97070080
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 25 12:05:29 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

        sink().write(value.toByteArray())
      }
    
      fun writeLong(v: Long) {
        val sink = sink()
    
        val lengthBitCount: Int =
          if (v < 0L) {
            65 - java.lang.Long.numberOfLeadingZeros(v xor -1L)
          } else {
            65 - java.lang.Long.numberOfLeadingZeros(v)
          }
    
        val lengthByteCount = (lengthBitCount + 7) / 8
        for (shift in (lengthByteCount - 1) * 8 downTo 0 step 8) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

      /** Returns a byte string that differs from this one by one bit. */
      private fun ByteString.offByOneBit(): ByteString {
        return Buffer()
          .write(this, 0, size - 1)
          .writeByte(this[size - 1].toInt() xor 1)
          .readByteString()
      }
    
      private fun date(s: String): Date {
        return SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").run {
          timeZone = TimeZone.getTimeZone("GMT")
          parse(s)
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  9. cmd/metrics-v3-types.go

    	}
    	return v.toPromName(mg.CollectorPath.metricPrefix())
    }
    
    func (mg *MetricsGroup) validate() {
    	if len(mg.Descriptors) == 0 {
    		panic("Descriptors must be set")
    	}
    
    	// For bools A and B, A XOR B <=> A != B.
    	isExactlyOneSet := (mg.loader == nil) != (mg.bucketLoader == nil)
    	if !isExactlyOneSet {
    		panic("Exactly one Loader function must be set")
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 30 22:28:46 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    		Certs:      []madmin.TLSCert{},
    	}
    
    	if globalIsTLS {
    		for _, c := range globalPublicCerts {
    			check := xxh3.Hash(c.RawIssuer)
    			check ^= xxh3.Hash(c.RawSubjectPublicKeyInfo)
    			// We XOR, so order doesn't matter.
    			for _, v := range c.DNSNames {
    				check ^= xxh3.HashString(v)
    			}
    			for _, v := range c.EmailAddresses {
    				check ^= xxh3.HashString(v)
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top