Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for bit_string (0.3 sec)

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

          Adapters.INTEGER_AS_BIG_INTEGER,
          algorithmIdentifier,
          name,
          validity,
          name,
          subjectPublicKeyInfo,
          Adapters.BIT_STRING.withTag(tag = 1L).optional(),
          Adapters.BIT_STRING.withTag(tag = 2L).optional(),
          extension.asSequenceOf().withExplicitBox(tag = 3).optional(defaultValue = listOf()),
          decompose = {
            listOf(
              it.version,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val bitString = BitString("6e5dc0".decodeHex(), 6)
    
        assertThat(Adapters.BIT_STRING.fromDer(bytes)).isEqualTo(bitString)
        assertThat(Adapters.BIT_STRING.toDer(bitString)).isEqualTo(bytes)
      }
    
      @Test fun `cannot decode empty bit string`() {
        val bytes = "0300".decodeHex()
        assertFailsWith<ProtocolException> {
          Adapters.BIT_STRING.fromDer(bytes)
        }.also { expected ->
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              ) = writer.writeBigInteger(value)
            },
        )
    
      val BIT_STRING =
        BasicDerAdapter(
          name = "BIT STRING",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 3L,
          codec =
            object : BasicDerAdapter.Codec<BitString> {
              override fun decode(reader: DerReader): BitString = reader.readBitString()
    
              override fun encode(
                writer: DerWriter,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/main/resources/fess_indices/fess/doc.json

            "copy_to": ["content_minhash_bits"]
          },
          "content_minhash": {
            "type": "text",
            "index": false
          },
          "content_minhash_bits": {
            "type": "minhash",
            "bit_string": true,
            "minhash_analyzer": "minhash_analyzer"
          },
          "content_length": {
            "type": "long"
          },
          "created": {
            "type": "date",
            "format": "date_optional_time"
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 15 11:50:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

    import okhttp3.tls.internal.der.ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.ByteString.Companion.toByteString
    import org.junit.jupiter.api.Test
    
    internal class DerCertificatesTest {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 43.9K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        }
        return result
      }
    
      fun readBitString(): BitString {
        if (bytesLeft == -1L || constructed) {
          throw ProtocolException("constructed bit strings not supported for DER")
        }
        if (bytesLeft < 1) {
          throw ProtocolException("malformed bit string")
        }
        val unusedBitCount = source.readByte().toInt() and 0xff
        val byteString = source.readByteString(bytesLeft)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import okhttp3.tls.internal.der.ObjectIdentifiers.SUBJECT_ALTERNATIVE_NAME
    import okhttp3.tls.internal.der.TbsCertificate
    import okhttp3.tls.internal.der.Validity
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * A certificate and its private key. These are some properties of certificates that are used with
     * TLS:
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

          )
        }
      }
    
      @Test
      fun byteStringEmpty() {
        val body = body("")
        assertThat(body.byteString()).isEqualTo(ByteString.EMPTY)
      }
    
      @Test
      fun byteStringSeesBom() {
        val body = body("efbbbf68656c6c6f")
        val actual = body.byteString()
        val expected: ByteString = "efbbbf68656c6c6f".decodeHex()
        assertThat(actual).isEqualTo(expected)
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

    import javax.net.ssl.SSLPeerUnverifiedException
    import okhttp3.internal.filterList
    import okhttp3.internal.tls.CertificateChainCleaner
    import okhttp3.internal.toCanonicalHost
    import okio.ByteString
    import okio.ByteString.Companion.decodeBase64
    import okio.ByteString.Companion.toByteString
    
    /**
     * Constrains which certificates are trusted. Pinning certificates defends against attacks on
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (1)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Hpack.kt

              decodeBuffer.readByteString()
            } else {
              source.readByteString(length)
            }
          }
        }
    
      private fun nameToFirstIndex(): Map<ByteString, Int> {
        val result = LinkedHashMap<ByteString, Int>(STATIC_HEADER_TABLE.size, 1.0F)
        for (i in STATIC_HEADER_TABLE.indices) {
          if (!result.containsKey(STATIC_HEADER_TABLE[i].name)) {
            result[STATIC_HEADER_TABLE[i].name] = i
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 22.4K bytes
    - Viewed (0)
Back to top