crypto/ecdh.PrivateKey.Curve (method)
9 uses
crypto/ecdh (current package)
ecdh.go#L157: func (k *PrivateKey) Curve() Curve {
crypto/tls
handshake_client_tls13.go#L235: if sentID, _ := curveIDForCurve(hs.ecdheKey.Curve()); sentID == curveID {
handshake_client_tls13.go#L336: if sentID, _ := curveIDForCurve(hs.ecdheKey.Curve()); hs.serverHello.serverShare.group != sentID {
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
pkcs8.go#L142: if k.Curve() == ecdh.X25519() {
pkcs8.go#L151: oid, ok := oidFromECDHCurve(k.Curve())
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. |