Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for AlgorithmIdentifier (0.12 sec)

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

            else -> null
          }
        }
    
      /**
       * ```
       * AlgorithmIdentifier ::= SEQUENCE  {
       *   algorithm      OBJECT IDENTIFIER,
       *   parameters     ANY DEFINED BY algorithm OPTIONAL
       * }
       * ```
       */
      internal val algorithmIdentifier: BasicDerAdapter<AlgorithmIdentifier> =
        Adapters.sequence(
          "AlgorithmIdentifier",
          Adapters.OBJECT_IDENTIFIER.asTypeHint(),
          algorithmParameters,
    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/main/kotlin/okhttp3/tls/internal/der/Certificate.kt

    internal data class PrivateKeyInfo(
      // v1(0), v2(1).
      val version: Long,
      val algorithmIdentifier: AlgorithmIdentifier,
      val privateKey: ByteString,
    ) {
      // Avoid Long.hashCode(long) which isn't available on Android 5.
      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + version.toInt()
        result = 31 * result + algorithmIdentifier.hashCode()
        result = 31 * result + privateKey.hashCode()
        return result
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

          )
            .decodeBase64()!!
    
        val decoded = CertificateAdapters.privateKeyInfo.fromDer(privateKeyInfoByteString)
    
        assertThat(decoded.version).isEqualTo(0L)
        assertThat(decoded.algorithmIdentifier).isEqualTo(AlgorithmIdentifier(RSA_ENCRYPTION, null))
        assertThat(decoded.privateKey.size).isEqualTo(607)
    
        val encoded = CertificateAdapters.privateKeyInfo.toDer(decoded)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val algorithmIdentifier =
          AlgorithmIdentifier(
            algorithm = SHA256_WITH_RSA_ENCRYPTION,
            parameters = null,
          )
        assertThat(CertificateAdapters.algorithmIdentifier.fromDer(bytes))
          .isEqualTo(algorithmIdentifier)
        assertThat(CertificateAdapters.algorithmIdentifier.toDer(algorithmIdentifier))
          .isEqualTo(bytes)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

        }
    
        private fun signatureAlgorithm(signedByKeyPair: KeyPair): AlgorithmIdentifier {
          return when (signedByKeyPair.private) {
            is RSAPrivateKey ->
              AlgorithmIdentifier(
                algorithm = SHA256_WITH_RSA_ENCRYPTION,
                parameters = null,
              )
            else ->
              AlgorithmIdentifier(
                algorithm = SHA256_WITH_ECDSA,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top