Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cloudflare/tls-tris
/ functions
Functions
532 in github.com/cloudflare/tls-tris
⨍
Functions
532
◇
Types & classes
98
↓ 138 callers
Method
sendAlert
sendAlert sends a TLS alert message. L < c.out.Mutex.
conn.go:917
↓ 67 callers
Method
Clone
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 callers
Method
marshal
()
common.go:1021
↓ 63 callers
Method
Write
Write writes data to the connection.
conn.go:1220
↓ 61 callers
Method
Close
Close closes the connection.
conn.go:1552
↓ 44 callers
Method
Handshake
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 callers
Method
Error
()
alert.go:82
↓ 36 callers
Method
setErrorLocked
(err error)
conn.go:203
↓ 33 callers
Method
writeRecord
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 callers
Method
Sum
()
prf.go:251
↓ 31 callers
Function
randomBytes
(n int, rand *rand.Rand)
handshake_messages_test.go:104
↓ 29 callers
Function
Server
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 callers
Method
Close
()
tls_test.go:751
↓ 25 callers
Method
rand
()
common.go:792
↓ 25 callers
Method
readHandshake
readHandshake reads the next handshake message from the record layer. c.in.Mutex < L; c.out.Mutex < L.
conn.go:1126
↓ 24 callers
Method
Write
(msg []byte)
prf.go:235
↓ 24 callers
Function
runClientTestTLS12
(t *testing.T, template *clientTest)
handshake_client_test.go:462
↓ 22 callers
Function
Client
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 callers
Method
String
()
alert.go:74
↓ 21 callers
Function
runServerTestTLS12
(t *testing.T, template *serverTest)
handshake_server_test.go:702
↓ 18 callers
Function
unexpectedMessageError
(wanted, got interface{})
common.go:1202
↓ 18 callers
Method
write
write appends the data to the transcript hash context.
13.go:133
↓ 17 callers
Method
ConnectionState
ConnectionState returns basic TLS details about the connection.
conn.go:1667
↓ 15 callers
Method
Size
()
cipher_suites.go:156
↓ 13 callers
Method
Write
(p []byte)
cipher_suites.go:323
↓ 12 callers
Function
X509KeyPair
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 callers
Function
testClientHelloFailure
(t *testing.T, serverConfig *Config, m handshakeMessage, expectedSubStr string)
handshake_server_test.go:75
↓ 11 callers
Function
Dial
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 callers
Method
Get
Get searches for a ClientSessionState associated with the given key. On return, ok is true if one was found.
common.go:278
↓ 11 callers
Method
setCipher
(version uint16, cipher interface{})
conn.go:235
↓ 10 callers
Method
Accept
Accept waits for and returns the next incoming TLS connection. The returned connection is of type *Conn.
tls.go:51
↓ 10 callers
Method
Reset
()
cipher_suites.go:322
↓ 10 callers
Method
freeBlock
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 callers
Function
fromHex
(s string)
handshake_server_test.go:1379
↓ 10 callers
Function
hkdfExpandLabel
(hash crypto.Hash, secret, hashValue []byte, label string, L int)
13.go:619
↓ 10 callers
Function
newLocalListener
(t testing.TB)
tls_test.go:154
↓ 10 callers
Method
resize
resize resizes block to be n bytes, growing if necessary.
conn.go:544
↓ 10 callers
Function
testHandshake
(clientConfig, serverConfig *Config)
handshake_server_test.go:319
↓ 9 callers
Function
hashForSuite
(suite *cipherSuite)
13.go:584
↓ 9 callers
Method
prepareCipher
(secretLabel secretLabel)
13.go:177
↓ 9 callers
Function
tempFile
tempFile creates a temp file containing contents and returns its path.
handshake_test.go:217
↓ 8 callers
Method
Write
(data []byte)
handshake_client_test.go:1263
↓ 8 callers
Method
Write
(p []byte)
tls_test.go:832
↓ 8 callers
Method
flush
()
conn.go:1019
↓ 8 callers
Method
maxVersion
()
common.go:843
↓ 8 callers
Function
pickSignatureAlgorithm
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 callers
Function
randomString
(n int, rand *rand.Rand)
handshake_messages_test.go:112
↓ 8 callers
Method
readRecord
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 callers
Method
BuildNameToCertificate
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf ce
common.go:961
↓ 7 callers
Function
bigFromString
(s string)
handshake_server_test.go:1373
↓ 7 callers
Function
runClientTestTLS10
(t *testing.T, template *clientTest)
handshake_client_test.go:454
↓ 7 callers
Method
setSecret
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 callers
Function
NewLRUClientSessionCache
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 callers
Method
Overhead
()
cipher_suites.go:202
↓ 6 callers
Method
Put
Put adds the ClientSessionState to the cache with the given key.
common.go:281
↓ 6 callers
Method
Read
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 callers
Function
curveForCurveID
(id CurveID)
key_agreement.go:126
↓ 6 callers
Function
eqSignatureAlgorithms
(x, y []SignatureScheme)
handshake_messages.go:2678
↓ 6 callers
Method
marshal
()
handshake_messages.go:2340
↓ 6 callers
Function
roundUp
(a, b int)
conn.go:313
↓ 5 callers
Method
Close
()
conn_test.go:264
↓ 5 callers
Method
VerifyHostname
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 callers
Function
benchmarkHandshakeServer
(b *testing.B, cipherSuite uint16, curve CurveID, cert []byte, key crypto.PrivateKey)
handshake_server_test.go:1011
↓ 5 callers
Method
curvePreferences
()
common.go:852
↓ 5 callers
Method
discardHandshakeBuffer
discardHandshakeBuffer is called when there is no more need to buffer the entirety of the handshake messages.
prf.go:353
↓ 5 callers
Function
hmacOfSum
(f crypto.Hash, hash hash.Hash, key []byte)
13.go:635
↓ 4 callers
Method
BlockSize
()
cipher_suites.go:321
↓ 4 callers
Method
Open
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:217
↓ 4 callers
Method
Seal
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 callers
Method
SetSessionTicketKeys
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 callers
Method
WriteTo
WriteTo writes Go source code to w that contains the recorded traffic.
handshake_test.go:138
↓ 4 callers
Function
cipherSuiteById
(id uint16)
prf_test.go:74
↓ 4 callers
Method
cipherSuites
()
common.go:819
↓ 4 callers
Method
clientHelloInfo
()
handshake_server.go:899
↓ 4 callers
Function
eqByteSlices
(x, y [][]byte)
handshake_messages.go:2666
↓ 4 callers
Method
getSignatureAlgorithmsCert
()
handshake_messages.go:787
↓ 4 callers
Method
getSignatureAlgorithmsCert
()
handshake_messages.go:2317
↓ 4 callers
Method
marshal
()
handshake_messages.go:1484
↓ 4 callers
Function
marshalExtensionSignatureAlgorithms
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 callers
Function
newFinishedHash
(version uint16, cipherSuite *cipherSuite)
prf.go:204
↓ 4 callers
Method
prepareCipherSpec
prepareCipherSpec sets the encryption and MAC states that a subsequent changeCipherSpec will use.
conn.go:213
↓ 4 callers
Function
runServerTestForVersion
(t *testing.T, template *serverTest, prefix, option string)
handshake_server_test.go:678
↓ 4 callers
Function
runServerTestTLS10
(t *testing.T, template *serverTest)
handshake_server_test.go:694
↓ 4 callers
Method
sendAlertLocked
sendAlert sends a TLS alert message. c.out.Mutex <= L.
conn.go:897
↓ 4 callers
Method
unmarshal
(data []byte)
handshake_messages.go:1052
↓ 4 callers
Method
validate
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 callers
Method
writeRecordLocked
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 callers
Method
CloseWrite
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 callers
Method
Read
(buf []byte)
handshake_client_test.go:51
↓ 3 callers
Method
Sum
(b []byte)
cipher_suites.go:324
↓ 3 callers
Method
dataPath
()
handshake_client_test.go:266
↓ 3 callers
Method
dataPath
()
handshake_server_test.go:563
↓ 3 callers
Method
derive
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 callers
Method
deriveSecret
deriveSecret returns the secret derived from the handshake context and label.
13.go:164
↓ 3 callers
Function
finishedSum30
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 callers
Method
generate
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 callers
Function
getIDByName
(m map[uint16]string, name string)
_dev/tris-testclient/client.go:38
↓ 3 callers
Function
keysFromMasterSecret
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 callers
Method
marshal
()
handshake_messages.go:137
↓ 3 callers
Method
marshal
()
handshake_messages.go:851
next →
1–100 of 532, ranked by callers