crypto/x509.Certificate.PublicKey (field)

23 uses

	crypto/x509 (current package)
		parser.go#L1019: 		cert.PublicKey, err = parsePublicKey(&publicKeyInfo{
		verify.go#L1009: 		if candidate.cert.PublicKey == nil || alreadyInChain(candidate.cert, currentChain) {
		x509.go#L698: 	PublicKey          any
		x509.go#L930: 	return checkSignature(c.SignatureAlgorithm, c.RawTBSCertificate, c.Signature, parent.PublicKey, false)
		x509.go#L941: 	return checkSignature(algo, signed, signature, c.PublicKey, true)
		x509.go#L1756: 	} else if parent.PublicKey != nil && !privPub.Equal(parent.PublicKey) {

	crypto/tls
		defaults_fips140.go#L66: 	switch k := c.PublicKey.(type) {
		handshake_client.go#L1121: 			n := cert.PublicKey.(*rsa.PublicKey).N.BitLen()
		handshake_client.go#L1184: 	switch certs[0].PublicKey.(type) {
		handshake_client.go#L1189: 		return fmt.Errorf("tls: server's certificate contains an unsupported type of public key: %T", certs[0].PublicKey)
		handshake_client_tls13.go#L681: 		!isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, signatureSchemesForPublicKey(c.vers, c.peerCertificates[0].PublicKey)) {
		handshake_client_tls13.go#L693: 	if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
		handshake_server.go#L704: 			pub = c.peerCertificates[0].PublicKey
		handshake_server.go#L937: 			n := certs[i].PublicKey.(*rsa.PublicKey).N.BitLen()
		handshake_server.go#L991: 		switch certs[0].PublicKey.(type) {
		handshake_server.go#L995: 			return fmt.Errorf("tls: client certificate contains an unsupported public key of type %T", certs[0].PublicKey)
		handshake_server_tls13.go#L1106: 			!isSupportedSignatureAlgorithm(certVerify.signatureAlgorithm, signatureSchemesForPublicKey(c.vers, c.peerCertificates[0].PublicKey)) {
		handshake_server_tls13.go#L1118: 		if err := verifyHandshakeSignature(sigType, c.peerCertificates[0].PublicKey,
		key_agreement.go#L91: 	rsaKey, ok := cert.PublicKey.(*rsa.PublicKey)
		key_agreement.go#L354: 		sigType, sigHash, err = legacyTypeAndHashFromPublicKey(cert.PublicKey)
		key_agreement.go#L370: 	if err := verifyHandshakeSignature(sigType, cert.PublicKey, sigHash, signed, sig); err != nil {
		tls.go#L332: 	switch pub := x509Cert.PublicKey.(type) {