crypto/x509.Certificate.PublicKey (field)

24 uses

	crypto/x509 (current package)
		parser.go#L954: 		cert.PublicKey, err = parsePublicKey(&publicKeyInfo{
		verify.go#L875: 		if !candidate.PublicKey.(pubKeyEqual).Equal(cert.PublicKey) {
		verify.go#L910: 		if candidate.cert.PublicKey == nil || alreadyInChain(candidate.cert, currentChain) {
		x509.go#L697: 	PublicKey          any
		x509.go#L859: 	return checkSignature(c.SignatureAlgorithm, c.RawTBSCertificate, c.Signature, parent.PublicKey, false)
		x509.go#L870: 	return checkSignature(algo, signed, signature, c.PublicKey, true)
		x509.go#L1666: 	} else if parent.PublicKey != nil && !privPub.Equal(parent.PublicKey) {

	crypto/tls
		handshake_client.go#L1081: 			n := cert.cert.PublicKey.(*rsa.PublicKey).N.BitLen()
		handshake_client.go#L1135: 	switch certs[0].PublicKey.(type) {
		handshake_client.go#L1140: 		return fmt.Errorf("tls: server's certificate contains an unsupported type of public key: %T", certs[0].PublicKey)
		handshake_client_tls13.go#L697: 	if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
		handshake_server.go#L660: 			pub = c.peerCertificates[0].PublicKey
		handshake_server.go#L884: 			n := certs[i].PublicKey.(*rsa.PublicKey).N.BitLen()
		handshake_server.go#L934: 		switch certs[0].PublicKey.(type) {
		handshake_server.go#L938: 			return fmt.Errorf("tls: client certificate contains an unsupported public key of type %T", certs[0].PublicKey)
		handshake_server_tls13.go#L993: 		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#L320: 	switch pub := x509Cert.PublicKey.(type) {

	github.com/golang-jwt/jwt/v5
		ecdsa_utils.go#L56: 			parsedKey = cert.PublicKey
		rsa_utils.go#L92: 			parsedKey = cert.PublicKey