Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for oidFromECDHCurve (1.38 sec)

  1. src/crypto/x509/pkcs8.go

    			}
    			var err error
    			if privKey.PrivateKey, err = asn1.Marshal(k.Bytes()); err != nil {
    				return nil, fmt.Errorf("x509: failed to marshal private key: %v", err)
    			}
    		} else {
    			oid, ok := oidFromECDHCurve(k.Curve())
    			if !ok {
    				return nil, errors.New("x509: unknown curve while marshaling to PKCS#8")
    			}
    			oidBytes, err := asn1.Marshal(oid)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. src/crypto/x509/x509.go

    	case *ecdh.PublicKey:
    		publicKeyBytes = pub.Bytes()
    		if pub.Curve() == ecdh.X25519() {
    			publicKeyAlgorithm.Algorithm = oidPublicKeyX25519
    		} else {
    			oid, ok := oidFromECDHCurve(pub.Curve())
    			if !ok {
    				return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: unsupported elliptic curve")
    			}
    			publicKeyAlgorithm.Algorithm = oidPublicKeyECDSA
    			var paramBytes []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
Back to top