- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for MarshalPKCS1PublicKey (0.52 sec)
-
src/crypto/x509/pkcs1.go
} return &rsa.PublicKey{ E: pub.E, N: pub.N, }, nil } // MarshalPKCS1PublicKey converts an [RSA] public key to PKCS #1, ASN.1 DER form. // // This kind of key is commonly encoded in PEM blocks of type "RSA PUBLIC KEY". func MarshalPKCS1PublicKey(key *rsa.PublicKey) []byte { derBytes, _ := asn1.Marshal(pkcs1PublicKey{ N: key.N, E: key.E, }) return derBytes
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 4.7K bytes - Viewed (0) -
docs/debugging/inspect/main.go
} err = pem.Encode(privatePem, privateKeyBlock) if err != nil { fmt.Printf("error when encode private pem: %s n", err) os.Exit(1) } // dump public key to file publicKeyBytes := x509.MarshalPKCS1PublicKey(&privatekey.PublicKey) if err != nil { fmt.Printf("error when dumping publickey: %s n", err) os.Exit(1) } publicKeyBlock := &pem.Block{ Type: "PUBLIC KEY", Bytes: publicKeyBytes, }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 31 14:49:23 UTC 2024 - 5.2K bytes - Viewed (0) -
api/go1.10.txt
pkg crypto/x509, const TooManyConstraints = 8 pkg crypto/x509, const TooManyConstraints InvalidReason pkg crypto/x509, const UnconstrainedName = 7 pkg crypto/x509, const UnconstrainedName InvalidReason pkg crypto/x509, func MarshalPKCS1PublicKey(*rsa.PublicKey) []uint8 pkg crypto/x509, func MarshalPKCS8PrivateKey(interface{}) ([]uint8, error) pkg crypto/x509, func ParsePKCS1PublicKey([]uint8) (*rsa.PublicKey, error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 06 05:00:01 UTC 2018 - 30.1K bytes - Viewed (0) -
src/crypto/x509/x509_test.go
E: 3, } derBytes := MarshalPKCS1PublicKey(pub) pub2, err := ParsePKCS1PublicKey(derBytes) if err != nil { t.Errorf("ParsePKCS1PublicKey: %s", err) } if pub.N.Cmp(pub2.N) != 0 || pub.E != pub2.E {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:00:16 UTC 2024 - 163.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"KeyUsageKeyEncipherment", Const, 0}, {"MD2WithRSA", Const, 0}, {"MD5WithRSA", Const, 0}, {"MarshalECPrivateKey", Func, 2}, {"MarshalPKCS1PrivateKey", Func, 0}, {"MarshalPKCS1PublicKey", Func, 10}, {"MarshalPKCS8PrivateKey", Func, 10}, {"MarshalPKIXPublicKey", Func, 0}, {"NameConstraintsWithoutSANs", Const, 10}, {"NameMismatch", Const, 8}, {"NewCertPool", Func, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)