Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MarshalECPrivateKey (0.25 sec)

  1. cmd/test-utils_test.go

    		switch k := priv.(type) {
    		case *rsa.PrivateKey:
    			return &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(k)}
    		case *ecdsa.PrivateKey:
    			b, err := x509.MarshalECPrivateKey(k)
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "Unable to marshal ECDSA private key: %v", err)
    				os.Exit(2)
    			}
    			return &pem.Block{Type: "EC PRIVATE KEY", Bytes: b}
    		default:
    			return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  2. api/go1.2.txt

    pkg crypto/tls, const VersionTLS12 = 771
    pkg crypto/tls, const VersionTLS12 ideal-int
    pkg crypto/tls, type Config struct, MaxVersion uint16
    pkg crypto/tls, type Config struct, MinVersion uint16
    pkg crypto/x509, func MarshalECPrivateKey(*ecdsa.PrivateKey) ([]uint8, error)
    pkg crypto/x509, type Certificate struct, CRLDistributionPoints []string
    pkg crypto/x509, type Certificate struct, Extensions []pkix.Extension
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
Back to top