Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for bit_string (0.17 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/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)
  7. 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)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

      /**
       * Returns the response as a [ByteString].
       *
       * This method loads entire response body into memory. If the response body is very large this
       * may trigger an [OutOfMemoryError]. Prefer to stream the response body if this is a
       * possibility for your response.
       */
      @Throws(IOException::class)
      fun byteString() = consumeSource(BufferedSource::readByteString) { it.size }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/Relay.kt

    import java.io.RandomAccessFile
    import okhttp3.internal.closeQuietly
    import okhttp3.internal.concurrent.Lockable
    import okhttp3.internal.concurrent.notifyAll
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.Source
    import okio.Timeout
    
    /**
     * Replicates a single upstream source into multiple downstream sources. Each downstream source
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 17:15:47 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  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