github.com/refraction-networking/utls.Certificate.PrivateKey (field)
24 uses
github.com/refraction-networking/utls (current package)
auth.go#L174: priv, ok := cert.PrivateKey.(crypto.Signer)
auth.go#L260: switch cert.PrivateKey.(type) {
auth.go#L263: cert.PrivateKey, cert.PrivateKey)
auth.go#L268: signer, ok := cert.PrivateKey.(crypto.Signer)
auth.go#L271: cert.PrivateKey)
auth.go#L294: return fmt.Errorf("tls: internal error: unsupported key (%T)", cert.PrivateKey)
common.go#L1406: if priv, ok := c.PrivateKey.(crypto.Decrypter); ok {
common.go#L1451: if priv, ok := c.PrivateKey.(crypto.Signer); ok {
common.go#L1608: PrivateKey crypto.PrivateKey
handshake_client.go#L826: key, ok := chainToSend.PrivateKey.(crypto.Signer)
handshake_client.go#L829: return fmt.Errorf("tls: client certificate private key of type %T does not implement crypto.Signer", chainToSend.PrivateKey)
handshake_client_tls13.go#L988: sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server.go#L290: if priv, ok := hs.cert.PrivateKey.(crypto.Signer); ok {
handshake_server.go#L303: if priv, ok := hs.cert.PrivateKey.(crypto.Decrypter); ok {
handshake_server_tls13.go#L870: sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server_tls13.go#L872: public := hs.cert.PrivateKey.(crypto.Signer).Public()
key_agreement.go#L59: priv, ok := cert.PrivateKey.(crypto.Decrypter)
key_agreement.go#L200: priv, ok := cert.PrivateKey.(crypto.Signer)
key_agreement.go#L202: return nil, fmt.Errorf("tls: certificate private key of type %T does not implement crypto.Signer", cert.PrivateKey)
tls.go#L316: cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
tls.go#L323: priv, ok := cert.PrivateKey.(*rsa.PrivateKey)
tls.go#L331: priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey)
tls.go#L339: priv, ok := cert.PrivateKey.(ed25519.PrivateKey)
 |
The pages are generated with Golds v0.8.4. (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. |