crypto/ecdh.PrivateKey.Curve (method)
7 uses
crypto/ecdh (current package)
ecdh.go#L157: func (k *PrivateKey) Curve() Curve {
crypto/tls
handshake_client_tls13.go#L492: peerKey, err := hs.keyShareKeys.ecdhe.Curve().NewPublicKey(ecdhePeerData)
handshake_server_tls13.go#L242: peerKey, err := key.Curve().NewPublicKey(ecdhData)
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
pkcs8.go#L142: if k.Curve() == ecdh.X25519() {
pkcs8.go#L151: oid, ok := oidFromECDHCurve(k.Curve())
![]() |
The pages are generated with Golds v0.7.6. (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. |