crypto/tls.Config.rand (method)
21 uses
crypto/tls (current package)
common.go#L805: if _, err := io.ReadFull(c.rand(), c.SessionTicketKey[:]); err != nil {
common.go#L867: if _, err := io.ReadFull(c.rand(), newKey[:]); err != nil {
common.go#L911: func (c *Config) rand() io.Reader {
conn.go#L975: outBuf, err = c.out.encrypt(outBuf, data[:m], c.config.rand())
handshake_client.go#L103: _, err := io.ReadFull(config.rand(), hello.random)
handshake_client.go#L111: if _, err := io.ReadFull(config.rand(), hello.sessionId); err != nil {
handshake_client.go#L127: params, err = generateECDHEParameters(config.rand(), curveID)
handshake_client.go#L622: certVerify.signature, err = key.Sign(c.config.rand(), signed, signOpts)
handshake_client_tls13.go#L227: params, err := generateECDHEParameters(c.config.rand(), curveID)
handshake_client_tls13.go#L600: sig, err := cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
handshake_server.go#L199: _, err := io.ReadFull(c.config.rand(), serverRandom)
handshake_server_tls13.go#L126: if _, err := io.ReadFull(c.config.rand(), hs.hello.random); err != nil {
handshake_server_tls13.go#L223: params, err := generateECDHEParameters(c.config.rand(), selectedGroup)
handshake_server_tls13.go#L636: sig, err := hs.cert.PrivateKey.(crypto.Signer).Sign(c.config.rand(), signed, signOpts)
key_agreement.go#L44: preMasterSecret, err := priv.Decrypt(config.rand(), ciphertext, &rsa.PKCS1v15DecryptOptions{SessionKeyLen: 48})
key_agreement.go#L65: _, err := io.ReadFull(config.rand(), preMasterSecret[2:])
key_agreement.go#L70: encrypted, err := rsa.EncryptPKCS1v15(config.rand(), cert.PublicKey.(*rsa.PublicKey), preMasterSecret)
key_agreement.go#L161: params, err := generateECDHEParameters(config.rand(), curveID)
key_agreement.go#L209: sig, err := priv.Sign(config.rand(), signed, signOpts)
key_agreement.go#L272: params, err := generateECDHEParameters(config.rand(), curveID)
ticket.go#L129: if _, err := io.ReadFull(c.config.rand(), iv); err != nil {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |