MCPcopy Index your code

hub / github.com/cloudflare/tls-tris / functions

Functions532 in github.com/cloudflare/tls-tris

↓ 138 callersMethodsendAlert
sendAlert sends a TLS alert message. L < c.out.Mutex.
conn.go:917
↓ 67 callersMethodClone
Clone returns a shallow clone of c. It is safe to clone a Config that is being used concurrently by a TLS client or server.
common.go:683
↓ 65 callersMethodmarshal
()
common.go:1021
↓ 63 callersMethodWrite
Write writes data to the connection.
conn.go:1220
↓ 61 callersMethodClose
Close closes the connection.
conn.go:1552
↓ 44 callersMethodHandshake
Handshake runs the client or server handshake protocol if it has not yet been run. Most uses of this package need not call Handshake explicitly: the f
conn.go:1621
↓ 40 callersMethodError
()
alert.go:82
↓ 36 callersMethodsetErrorLocked
(err error)
conn.go:203
↓ 33 callersMethodwriteRecord
writeRecord writes a TLS record with the given type and payload to the connection and updates the record layer state. L < c.out.Mutex.
conn.go:1116
↓ 32 callersMethodSum
()
prf.go:251
↓ 31 callersFunctionrandomBytes
(n int, rand *rand.Rand)
handshake_messages_test.go:104
↓ 29 callersFunctionServer
Server returns a new TLS server side connection using conn as the underlying transport. The configuration config must be non-nil and must include at l
tls.go:31
↓ 27 callersMethodClose
()
tls_test.go:751
↓ 25 callersMethodrand
()
common.go:792
↓ 25 callersMethodreadHandshake
readHandshake reads the next handshake message from the record layer. c.in.Mutex < L; c.out.Mutex < L.
conn.go:1126
↓ 24 callersMethodWrite
(msg []byte)
prf.go:235
↓ 24 callersFunctionrunClientTestTLS12
(t *testing.T, template *clientTest)
handshake_client_test.go:462
↓ 22 callersFunctionClient
Client returns a new TLS client side connection using conn as the underlying transport. The config cannot be nil: users must set either ServerName or
tls.go:39
↓ 21 callersMethodString
()
alert.go:74
↓ 21 callersFunctionrunServerTestTLS12
(t *testing.T, template *serverTest)
handshake_server_test.go:702
↓ 18 callersFunctionunexpectedMessageError
(wanted, got interface{})
common.go:1202
↓ 18 callersMethodwrite
write appends the data to the transcript hash context.
13.go:133
↓ 17 callersMethodConnectionState
ConnectionState returns basic TLS details about the connection.
conn.go:1667
↓ 15 callersMethodSize
()
cipher_suites.go:156
↓ 13 callersMethodWrite
(p []byte)
cipher_suites.go:323
↓ 12 callersFunctionX509KeyPair
X509KeyPair parses a public/private key pair from a pair of PEM encoded data. On successful return, Certificate.Leaf will be nil because the parsed fo
tls.go:193
↓ 12 callersFunctiontestClientHelloFailure
(t *testing.T, serverConfig *Config, m handshakeMessage, expectedSubStr string)
handshake_server_test.go:75
↓ 11 callersFunctionDial
Dial connects to the given network address using net.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Dial interprets
tls.go:169
↓ 11 callersMethodGet
Get searches for a ClientSessionState associated with the given key. On return, ok is true if one was found.
common.go:278
↓ 11 callersMethodsetCipher
(version uint16, cipher interface{})
conn.go:235
↓ 10 callersMethodAccept
Accept waits for and returns the next incoming TLS connection. The returned connection is of type *Conn.
tls.go:51
↓ 10 callersMethodReset
()
cipher_suites.go:322
↓ 10 callersMethodfreeBlock
freeBlock returns a block to hc's free list. The protocol is such that each side only has a block or two on its free list at a time, so there's no nee
conn.go:618
↓ 10 callersFunctionfromHex
(s string)
handshake_server_test.go:1379
↓ 10 callersFunctionhkdfExpandLabel
(hash crypto.Hash, secret, hashValue []byte, label string, L int)
13.go:619
↓ 10 callersFunctionnewLocalListener
(t testing.TB)
tls_test.go:154
↓ 10 callersMethodresize
resize resizes block to be n bytes, growing if necessary.
conn.go:544
↓ 10 callersFunctiontestHandshake
(clientConfig, serverConfig *Config)
handshake_server_test.go:319
↓ 9 callersFunctionhashForSuite
(suite *cipherSuite)
13.go:584
↓ 9 callersMethodprepareCipher
(secretLabel secretLabel)
13.go:177
↓ 9 callersFunctiontempFile
tempFile creates a temp file containing contents and returns its path.
handshake_test.go:217
↓ 8 callersMethodWrite
(data []byte)
handshake_client_test.go:1263
↓ 8 callersMethodWrite
(p []byte)
tls_test.go:832
↓ 8 callersMethodflush
()
conn.go:1019
↓ 8 callersMethodmaxVersion
()
common.go:843
↓ 8 callersFunctionpickSignatureAlgorithm
pickSignatureAlgorithm selects a signature algorithm that is compatible with the given public key and the list of algorithms from both sides of connec
auth.go:23
↓ 8 callersFunctionrandomString
(n int, rand *rand.Rand)
handshake_messages_test.go:112
↓ 8 callersMethodreadRecord
readRecord reads the next TLS record from the connection and updates the record layer state. c.in.Mutex <= L; c.input == nil. c.input can still be nil
conn.go:658
↓ 7 callersMethodBuildNameToCertificate
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf ce
common.go:961
↓ 7 callersFunctionbigFromString
(s string)
handshake_server_test.go:1373
↓ 7 callersFunctionrunClientTestTLS10
(t *testing.T, template *clientTest)
handshake_client_test.go:454
↓ 7 callersMethodsetSecret
setSecret sets the early/handshake/master secret based on the given secret (IKM). The salt is based on previous secrets (nil for the early secret).
13.go:113
↓ 6 callersFunctionNewLRUClientSessionCache
NewLRUClientSessionCache returns a ClientSessionCache with the given capacity that uses an LRU strategy. If capacity is < 1, a default capacity is use
common.go:1043
↓ 6 callersMethodOverhead
()
cipher_suites.go:202
↓ 6 callersMethodPut
Put adds the ClientSessionState to the cache with the given key.
common.go:281
↓ 6 callersMethodRead
Read can be made to time out and return a net.Error with Timeout() == true after a fixed time limit; see SetDeadline and SetReadDeadline.
conn.go:1458
↓ 6 callersFunctioncurveForCurveID
(id CurveID)
key_agreement.go:126
↓ 6 callersFunctioneqSignatureAlgorithms
(x, y []SignatureScheme)
handshake_messages.go:2678
↓ 6 callersMethodmarshal
()
handshake_messages.go:2340
↓ 6 callersFunctionroundUp
(a, b int)
conn.go:313
↓ 5 callersMethodClose
()
conn_test.go:264
↓ 5 callersMethodVerifyHostname
VerifyHostname checks that the peer certificate chain is valid for connecting to host. If so, it returns nil; if not, it returns an error describing t
conn.go:1718
↓ 5 callersFunctionbenchmarkHandshakeServer
(b *testing.B, cipherSuite uint16, curve CurveID, cert []byte, key crypto.PrivateKey)
handshake_server_test.go:1011
↓ 5 callersMethodcurvePreferences
()
common.go:852
↓ 5 callersMethoddiscardHandshakeBuffer
discardHandshakeBuffer is called when there is no more need to buffer the entirety of the handshake messages.
prf.go:353
↓ 5 callersFunctionhmacOfSum
(f crypto.Hash, hash hash.Hash, key []byte)
13.go:635
↓ 4 callersMethodBlockSize
()
cipher_suites.go:321
↓ 4 callersMethodOpen
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:217
↓ 4 callersMethodSeal
Seal returns a session ticket value that can be later passed to Unseal to recover the content, usually by encrypting it. The ticket will be sent to th
ticket.go:26
↓ 4 callersMethodSetSessionTicketKeys
SetSessionTicketKeys updates the session ticket keys for a server. The first key will be used when creating new tickets, while all keys can be used fo
common.go:777
↓ 4 callersMethodWriteTo
WriteTo writes Go source code to w that contains the recorded traffic.
handshake_test.go:138
↓ 4 callersFunctioncipherSuiteById
(id uint16)
prf_test.go:74
↓ 4 callersMethodcipherSuites
()
common.go:819
↓ 4 callersMethodclientHelloInfo
()
handshake_server.go:899
↓ 4 callersFunctioneqByteSlices
(x, y [][]byte)
handshake_messages.go:2666
↓ 4 callersMethodgetSignatureAlgorithmsCert
()
handshake_messages.go:787
↓ 4 callersMethodgetSignatureAlgorithmsCert
()
handshake_messages.go:2317
↓ 4 callersMethodmarshal
()
handshake_messages.go:1484
↓ 4 callersFunctionmarshalExtensionSignatureAlgorithms
Function used for signature_algorithms and signature_algorithrms_cert extensions only (for more details, see TLS 1.3 draft 28, 4.2.3). It advances da
handshake_messages.go:61
↓ 4 callersFunctionnewFinishedHash
(version uint16, cipherSuite *cipherSuite)
prf.go:204
↓ 4 callersMethodprepareCipherSpec
prepareCipherSpec sets the encryption and MAC states that a subsequent changeCipherSpec will use.
conn.go:213
↓ 4 callersFunctionrunServerTestForVersion
(t *testing.T, template *serverTest, prefix, option string)
handshake_server_test.go:678
↓ 4 callersFunctionrunServerTestTLS10
(t *testing.T, template *serverTest)
handshake_server_test.go:694
↓ 4 callersMethodsendAlertLocked
sendAlert sends a TLS alert message. c.out.Mutex <= L.
conn.go:897
↓ 4 callersMethodunmarshal
(data []byte)
handshake_messages.go:1052
↓ 4 callersMethodvalidate
validate checks that that the signature is valid, that the credential hasn't expired, and that the TTL is valid. It also checks that certificate can b
subcerts.go:253
↓ 4 callersMethodwriteRecordLocked
writeRecordLocked writes a TLS record with the given type and payload to the connection and updates the record layer state. c.out.Mutex <= L.
conn.go:1034
↓ 3 callersMethodCloseWrite
CloseWrite shuts down the writing side of the connection. It should only be called once the handshake has completed and does not call CloseWrite on th
conn.go:1593
↓ 3 callersMethodRead
(buf []byte)
handshake_client_test.go:51
↓ 3 callersMethodSum
(b []byte)
cipher_suites.go:324
↓ 3 callersMethoddataPath
()
handshake_client_test.go:266
↓ 3 callersMethoddataPath
()
handshake_server_test.go:563
↓ 3 callersMethodderive
c - context of current TLS handshake, ks - public key received from the other side of the connection, secretKey - is a private key used for DH key agr
13.go:77
↓ 3 callersMethodderiveSecret
deriveSecret returns the secret derived from the handshake context and label.
13.go:164
↓ 3 callersFunctionfinishedSum30
finishedSum30 calculates the contents of the verify_data member of a SSLv3 Finished message given the MD5 and SHA1 hashes of a set of handshake messag
prf.go:264
↓ 3 callersMethodgenerate
c - context of current TLS handshake, groupId - ID of an algorithm (curve/field) being chosen for key agreement. Methods implmenting an interface alwa
13.go:72
↓ 3 callersFunctiongetIDByName
(m map[uint16]string, name string)
_dev/tris-testclient/client.go:38
↓ 3 callersFunctionkeysFromMasterSecret
keysFromMasterSecret generates the connection keys from the master secret, given the lengths of the MAC key, cipher key and IV, as defined in RFC 2246
prf.go:165
↓ 3 callersMethodmarshal
()
handshake_messages.go:137
↓ 3 callersMethodmarshal
()
handshake_messages.go:851
next →1–100 of 532, ranked by callers