crypto/ecdh.Curve.NewPublicKey (method)

7 uses

	crypto/ecdh (current package)
		ecdh.go#L45: 	NewPublicKey(key []byte) (*PublicKey, error)

	crypto/ecdsa
		ecdsa.go#L65: 	return c.NewPublicKey(elliptic.Marshal(k.Curve, k.X, k.Y))

	crypto/tls
		handshake_client_tls13.go#L375: 	peerKey, err := hs.ecdheKey.Curve().NewPublicKey(hs.serverHello.serverShare.data)
		handshake_server_tls13.go#L224: 	peerKey, err := key.Curve().NewPublicKey(clientKeyShare.data)
		key_agreement.go#L263: 	peerKey, err := ka.key.Curve().NewPublicKey(ckx.ciphertext[1:])
		key_agreement.go#L306: 	peerKey, err := key.Curve().NewPublicKey(publicKey)

	crypto/x509
		parser.go#L288: 		return ecdh.X25519().NewPublicKey(der)