crypto/x509.Certificate.PublicKey (field)
38 uses
crypto/x509 (current package)
parser.go#L1011: cert.PublicKey, err = parsePublicKey(&publicKeyInfo{
verify.go#L741: if candidate.cert.PublicKey == nil || alreadyInChain(candidate.cert, currentChain) {
x509.go#L715: PublicKey any
x509.go#L947: return checkSignature(c.SignatureAlgorithm, c.RawTBSCertificate, c.Signature, parent.PublicKey, false)
x509.go#L958: return checkSignature(algo, signed, signature, c.PublicKey, true)
x509.go#L1773: } else if parent.PublicKey != nil && !privPub.Equal(parent.PublicKey) {
crypto/tls
defaults_fips140.go#L68: switch k := c.PublicKey.(type) {
handshake_client.go#L1108: n := cert.PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_client.go#L1171: switch certs[0].PublicKey.(type) {
handshake_client.go#L1176: return fmt.Errorf("tls: server's certificate contains an unsupported type of public key: %T", certs[0].PublicKey)
handshake_client_tls13.go#L657: !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, signatureSchemesForPublicKey(c.vers, c.peerCertificates[0].PublicKey)) {
handshake_client_tls13.go#L669: if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
handshake_server.go#L709: pub = c.peerCertificates[0].PublicKey
handshake_server.go#L950: n := certs[i].PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_server.go#L1003: switch certs[0].PublicKey.(type) {
handshake_server.go#L1007: return fmt.Errorf("tls: client certificate contains an unsupported public key of type %T", certs[0].PublicKey)
handshake_server_tls13.go#L1086: !isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, signatureSchemesForPublicKey(c.vers, c.peerCertificates[0].PublicKey)) {
handshake_server_tls13.go#L1098: if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
key_agreement.go#L91: rsaKey, ok := cert.PublicKey.(*rsa.PublicKey)
key_agreement.go#L351: if err := verifyHandshakeSignature(sigType, cert.PublicKey, sigHash, signed, sig); err != nil {
key_agreement.go#L355: sigType, sigHash, err = legacyTypeAndHashFromPublicKey(cert.PublicKey)
key_agreement.go#L363: if err := verifyLegacyHandshakeSignature(sigType, cert.PublicKey, sigHash, signed, sig); err != nil {
tls.go#L331: switch pub := x509Cert.PublicKey.(type) {
github.com/refraction-networking/utls
common.go#L1810: switch k := c.PublicKey.(type) {
handshake_client.go#L1132: n := cert.cert.PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_client.go#L1220: switch certs[0].PublicKey.(type) {
handshake_client.go#L1225: return fmt.Errorf("tls: server's certificate contains an unsupported type of public key: %T", certs[0].PublicKey)
handshake_client_tls13.go#L866: if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
handshake_server.go#L691: pub = c.peerCertificates[0].PublicKey
handshake_server.go#L918: n := certs[i].PublicKey.(*rsa.PublicKey).N.BitLen()
handshake_server.go#L972: switch certs[0].PublicKey.(type) {
handshake_server.go#L976: return fmt.Errorf("tls: client certificate contains an unsupported public key of type %T", certs[0].PublicKey)
handshake_server_tls13.go#L1105: if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
key_agreement.go#L90: rsaKey, ok := cert.PublicKey.(*rsa.PublicKey)
key_agreement.go#L338: sigType, sigHash, err = legacyTypeAndHashFromPublicKey(cert.PublicKey)
key_agreement.go#L354: if err := verifyHandshakeSignature(sigType, cert.PublicKey, sigHash, signed, sig); err != nil {
tls.go#L321: switch pub := x509Cert.PublicKey.(type) {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |