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)
The pages are generated with Golds v0.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |