Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for 0b1100_0000 (0.07 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        val length0 = source.readByte().toInt() and 0xff
        val length =
          when {
            length0 == 0b1000_0000 -> {
              throw ProtocolException("indefinite length not permitted for DER")
            }
            (length0 and 0b1000_0000) == 0b1000_0000 -> {
              // Length specified over multiple bytes.
              val lengthBytes = length0 and 0b0111_1111
              if (lengthBytes > 8) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `decode length overflowing Long`() {
        val buffer =
          Buffer()
            .writeByte(0b00000010)
            .writeByte(0b10001000)
            .writeByte(0b10000000)
            .writeByte(0b00000000)
            .writeByte(0b00000000)
            .writeByte(0b00000000)
            .writeByte(0b00000000)
            .writeByte(0b00000000)
            .writeByte(0b00000000)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top