Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for toDer (0.02 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(adapter.fromDer(bytes)).isEqualTo(sequenceOf)
        assertThat(adapter.toDer(sequenceOf)).isEqualTo(bytes)
      }
    
      @Test fun `point with only x set`() {
        val bytes = "3003800109".decodeHex()
        val point = Point(9L, null)
        assertThat(Point.ADAPTER.fromDer(bytes)).isEqualTo(point)
        assertThat(Point.ADAPTER.toDer(point)).isEqualTo(bytes)
      }
    
      @Test fun `point with only y set`() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       *
       * If this does write a value, it will write a tag and a length and a full value.
       */
      fun toDer(
        writer: DerWriter,
        value: T,
      )
    
      fun toDer(value: T): ByteString {
        val buffer = Buffer()
        val writer = DerWriter(buffer)
        toDer(writer, value)
        return buffer.readByteString()
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                )
    
            return choice to choice.fromDer(reader)
          }
    
          override fun toDer(
            writer: DerWriter,
            value: Pair<DerAdapter<*>, Any?>,
          ) {
            val (adapter, v) = value
            (adapter as DerAdapter<Any?>).toDer(writer, v)
          }
    
          override fun toString(): String = choices.joinToString(separator = " OR ")
        }
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

      @Test fun `time before 2050 uses UTC_TIME`() {
        val utcTimeDer = "170d3439313233313233353935395a".decodeHex()
    
        val decoded = CertificateAdapters.time.fromDer(utcTimeDer)
        val encoded = CertificateAdapters.time.toDer(decoded)
    
        assertThat(decoded).isEqualTo(date("2049-12-31T23:59:59.000+0000").time)
        assertThat(encoded).isEqualTo(utcTimeDer)
      }
    
      @Test fun `time not before 2050 uses GENERALIZED_TIME`() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

        val signedData = CertificateAdapters.tbsCertificate.toDer(tbsCertificate)
    
        return Signature.getInstance(tbsCertificate.signatureAlgorithmName).run {
          initVerify(issuer)
          update(signedData.toByteArray())
          verify(signatureValue.byteString.toByteArray())
        }
      }
    
      fun toX509Certificate(): X509Certificate {
        val data = CertificateAdapters.certificate.toDer(this)
        try {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

            }
          }
    
          override fun toDer(
            writer: DerWriter,
            value: Long,
          ) {
            // [1950-01-01T00:00:00..2050-01-01T00:00:00Z)
            if (value in -631_152_000_000L until 2_524_608_000_000L) {
              Adapters.UTC_TIME.toDer(writer, value)
            } else {
              Adapters.GENERALIZED_TIME.toDer(writer, value)
            }
          }
        }
    
      /**
       * ```
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

        }
    
        val result =
          reader.read(name) {
            codec.decode(reader)
          }
    
        if (typeHint) {
          reader.typeHint = result
        }
    
        return result
      }
    
      override fun toDer(
        writer: DerWriter,
        value: T,
      ) {
        if (typeHint) {
          writer.typeHint = value
        }
    
        if (isOptional && value == defaultValue) {
          // Nothing to write!
          return
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

          // Signature.
          val signature =
            Signature.getInstance(tbsCertificate.signatureAlgorithmName).run {
              initSign(issuerKeyPair.private)
              update(CertificateAdapters.tbsCertificate.toDer(tbsCertificate).toByteArray())
              sign().toByteString()
            }
    
          // Complete signed certificate.
          val certificate =
            Certificate(
              tbsCertificate = tbsCertificate,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  9. src/main/resources/fess_indices/fess/lv/stopwords.txt

    lejpus
    līdz
    no
    otrpus
    pa
    par
    pār
    pēc
    pie
    pirms
    pret
    priekš
    starp
    šaipus
    uz
    viņpus
    virs
    virspus
    zem
    apakšpus
    # Conjunctions
    un
    bet
    jo
    ja
    ka
    lai
    tomēr
    tikko
    turpretī
    arī
    kaut
    gan
    tādēļ
    tā
    ne
    tikvien
    vien
    kā
    ir
    te
    vai
    kamēr
    # Particles
    ar
    diezin
    droši
    diemžēl
    nebūt
    ik
    it
    taču
    nu
    pat
    tiklab
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 19 06:31:02 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  10. src/main/resources/fess_indices/_aws/fess.json

    "iz", "kopš", "labad", "lejpus", "līdz", "no", "otrpus", "pa", "par", "pār", "pēc", "pie", "pirms", "pret", "priekš", "starp", "šaipus", "uz", "viņpus", "virs", "virspus", "zem", "apakšpus", "# Conjunctions", "un", "bet", "jo", "ja", "ka", "lai", "tomēr", "tikko", "turpretī", "arī", "kaut", "gan", "tādēļ", "tā", "ne", "tikvien", "vien", "kā", "ir", "te", "vai", "kamēr", "# Particles", "ar", "diezin", "droši", "diemžēl", "nebūt", "ik", "it", "taču", "nu", "pat", "tiklab", "iekšpus", "nedz", "tik",...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Tue Mar 23 12:38:28 UTC 2021
    - 117.3K bytes
    - Viewed (0)
Back to top