Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for bit_string (0.24 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 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 Nov 01 11:42:11 UTC 2024
    - 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 Oct 31 13:40:30 UTC 2024
    - Last Modified: Tue Aug 15 11:50:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt

     * limitations under the License.
     */
    package okhttp3.tls.internal.der
    
    import okio.ByteString
    
    /**
     * Like a [ByteString], but whose bits are not necessarily a strict multiple of 8.
     */
    internal data class BitString(
      val byteString: ByteString,
      /** 0-7 unused bits in the last byte. */
      val unusedBitsCount: Int,
    ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

          sink.writeByte((v shr shift).toInt())
        }
      }
    
      fun writeBitString(bitString: BitString) {
        val sink = sink()
        sink.writeByte(bitString.unusedBitsCount)
        sink.write(bitString.byteString)
      }
    
      fun writeOctetString(byteString: ByteString) {
        sink().write(byteString)
      }
    
      fun writeUtf8(value: String) {
        sink().writeUtf8(value)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

      val issuer: List<List<AttributeTypeAndValue>>,
      val validity: Validity,
      val subject: List<List<AttributeTypeAndValue>>,
      val subjectPublicKeyInfo: SubjectPublicKeyInfo,
      val issuerUniqueID: BitString?,
      val subjectUniqueID: BitString?,
      val extensions: List<Extension>,
    ) {
      /**
       * Returns the standard name of this certificate's signature algorithm as specified by
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  10. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top