Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for AlgorithmIdentifier (0.29 sec)

  1. 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: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. src/crypto/x509/pkcs8.go

    		privKey.Algo = pkix.AlgorithmIdentifier{
    			Algorithm: oidPublicKeyEd25519,
    		}
    		curvePrivateKey, err := asn1.Marshal(k.Seed())
    		if err != nil {
    			return nil, fmt.Errorf("x509: failed to marshal private key: %v", err)
    		}
    		privKey.PrivateKey = curvePrivateKey
    
    	case *ecdh.PrivateKey:
    		if k.Curve() == ecdh.X25519() {
    			privKey.Algo = pkix.AlgorithmIdentifier{
    				Algorithm: oidPublicKeyX25519,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/crypto/x509/pkix/pkix.go

    package pkix
    
    import (
    	"encoding/asn1"
    	"encoding/hex"
    	"fmt"
    	"math/big"
    	"time"
    )
    
    // AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC
    // 5280, section 4.1.1.2.
    type AlgorithmIdentifier struct {
    	Algorithm  asn1.ObjectIdentifier
    	Parameters asn1.RawValue `asn1:"optional"`
    }
    
    type RDNSequence []RelativeDistinguishedNameSET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top