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
↓ 3 callers
Method
marshal
()
handshake_messages.go:1886
↓ 3 callers
Function
masterFromPreMasterSecret
masterFromPreMasterSecret generates the master secret from the pre-master secret. See http://tools.ietf.org/html/rfc5246#section-8.1
prf.go:145
↓ 3 callers
Method
minVersion
()
common.go:836
↓ 3 callers
Method
newBlock
newBlock allocates a new block, from hc's free list if possible.
conn.go:603
↓ 3 callers
Method
newRecordHeaderError
(msg string)
conn.go:648
↓ 3 callers
Function
pHash
pHash implements the P_hash function, as defined in RFC 4346, section 5.
prf.go:27
↓ 3 callers
Function
prepareDigitallySigned
(hash crypto.Hash, context string, data []byte)
13.go:591
↓ 3 callers
Function
prfForVersion
(version uint16, suite *cipherSuite)
prf.go:138
↓ 3 callers
Method
processCertsFromClient
processCertsFromClient takes a chain of client certificates either from a Certificates message or from a sessionState and verifies them. It returns th
handshake_server.go:778
↓ 3 callers
Method
readClientFinished13
readClientFinished13 is called during the server handshake (when no early data it available) or after reading all early data. It discards early data i
13.go:324
↓ 3 callers
Method
readClientHello
readClientHello reads a ClientHello message from the client and decides whether we will perform session resumption.
handshake_server.go:155
↓ 3 callers
Method
run
()
_dev/tris-testclient/client.go:72
↓ 3 callers
Function
runClientTestForVersion
(t *testing.T, template *clientTest, prefix, option string)
handshake_client_test.go:441
↓ 3 callers
Function
runClientTestTLS11
(t *testing.T, template *clientTest)
handshake_client_test.go:458
↓ 3 callers
Function
runDynamicRecordSizingTest
Run with multiple crypto configs to test the logic for computing TLS record overheads.
conn_test.go:136
↓ 3 callers
Function
runServerTestSSLv3
(t *testing.T, template *serverTest)
handshake_server_test.go:690
↓ 3 callers
Method
serverInit
serverInit is run under c.serverInitOnce to do initialization of c. If c was returned by a GetConfigForClient callback then the argument should be the
common.go:732
↓ 3 callers
Method
setMinMaxTLS
(ver uint16)
_dev/tris-testclient/client.go:67
↓ 3 callers
Function
setParallel
setParallel calls t.Parallel once. If you call it twice, it would panic.
handshake_client_test.go:431
↓ 3 callers
Method
ticketKeys
()
common.go:763
↓ 3 callers
Method
time
()
common.go:800
↓ 3 callers
Method
unmarshal
([]byte)
common.go:1022
↓ 3 callers
Method
unmarshal
([]byte)
handshake_messages_test.go:38
↓ 3 callers
Function
verifyHandshakeSignature
verifyHandshakeSignature verifies a signature against pre-hashed handshake contents.
auth.go:71
↓ 3 callers
Method
write
c.out.Mutex <= L.
conn.go:1008
↓ 3 callers
Method
writeKeyLog
writeKeyLog logs client random and master secret if logging was enabled by setting c.KeyLogWriter.
common.go:980
↓ 2 callers
Function
DialWithDialer
DialWithDialer connects to the given network address using dialer.Dial and then initiates a TLS handshake, returning the resulting TLS connection. Any
tls.go:98
↓ 2 callers
Method
MAC
(digestBuf, seq, header, data, extra []byte)
cipher_suites.go:157
↓ 2 callers
Method
SetIV
([]byte)
conn.go:320
↓ 2 callers
Method
Temporary
()
tls.go:89
↓ 2 callers
Function
allCipherSuites
()
handshake_server_test.go:42
↓ 2 callers
Method
changeCipherSpec
changeCipherSpec changes the encryption and MAC states to the ones previously passed to prepareCipherSpec.
conn.go:221
↓ 2 callers
Function
checkOpenSSLVersion
(t *testing.T)
handshake_test.go:47
↓ 2 callers
Method
clientHandshake
c.out.Mutex <= L; c.handshakeMutex <= L.
handshake_client.go:118
↓ 2 callers
Method
clientSum
clientSum returns the contents of the verify_data member of a client's Finished message.
prf.go:298
↓ 2 callers
Method
clone
()
_dev/tris-testclient/client.go:60
↓ 2 callers
Method
closeNotify
()
conn.go:1603
↓ 2 callers
Method
decryptTicket
(encrypted []byte)
ticket.go:285
↓ 2 callers
Function
defaultConfig
()
common.go:1105
↓ 2 callers
Method
deriveDHESecret
DH key agreement. ks stores public key, secretKey stores private key used for ephemeral key agreement. Function returns shared secret in case of succe
13.go:612
↓ 2 callers
Function
enableQR
(s *server, enableDefault bool)
_dev/tris-localserver/server.go:58
↓ 2 callers
Method
encryptTicket
(serialized []byte)
ticket.go:261
↓ 2 callers
Function
eqStrings
(x, y []string)
handshake_messages.go:2654
↓ 2 callers
Function
eqUint16s
(x, y []uint16)
handshake_messages.go:2630
↓ 2 callers
Method
establishKeys
()
handshake_client.go:647
↓ 2 callers
Method
establishKeys
()
handshake_server.go:657
↓ 2 callers
Method
explicitNonceLen
explicitIVLen returns the number of bytes used by the explicit nonce that is included in the record. This is eight for older AEADs and zero for modern
cipher_suites.go:166
↓ 2 callers
Function
extractPadding
extractPadding returns, in constant time, the length of the padding to remove from the end of payload. It also returns a byte which is equal to 255 if
conn.go:261
↓ 2 callers
Method
generateKeyShare
generateKeyShare generates keypair. Private key is returned as first argument, public key is returned in keyShare.data. keyshare.curveID stores ID of
13.go:603
↓ 2 callers
Method
getCertificate
getCertificate returns the best certificate for the given ClientHelloInfo, defaulting to the first element of c.Certificates.
common.go:916
↓ 2 callers
Method
getCertificate
(certReq *certificateRequestMsg)
handshake_client.go:864
↓ 2 callers
Function
getCertsFromEntries
(certEntries []certificateEntry)
13.go:846
↓ 2 callers
Function
getSidhKeyVariant
Depending on role returns pair of key variant to be used by local and remote process.
13.go:125
↓ 2 callers
Method
getSupportedVersions
getSupportedVersions returns the protocol versions that are supported by the current configuration.
common.go:898
↓ 2 callers
Method
handleEndOfEarlyData
()
13.go:502
↓ 2 callers
Method
hashForClientCertificate
hashForClientCertificate returns a digest over the handshake messages so far, suitable for signing by a TLS client certificate.
prf.go:322
↓ 2 callers
Function
hashForServerKeyExchange
hashForServerKeyExchange hashes the given slices and returns their digest using the given hash function.
key_agreement.go:111
↓ 2 callers
Method
incSeq
incSeq increments the sequence number.
conn.go:244
↓ 2 callers
Method
marshal
()
handshake_messages_test.go:37
↓ 2 callers
Function
mutualProtocol
mutualProtocol finds the mutual Next Protocol Negotiation or ALPN protocol given list of possible protocols and a list of the preference order. The fi
handshake_client.go:972
↓ 2 callers
Function
newKeySchedule13
(suite *cipherSuite, config *Config, clientRandom []byte)
13.go:98
↓ 2 callers
Function
parseTestData
(r io.Reader)
handshake_test.go:167
↓ 2 callers
Method
pickVersion
pickVersion returns the protocol version to use given the advertised versions of the peer using the Supported Versions extension.
common.go:881
↓ 2 callers
Function
prf12
prf12 implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, section 5.
prf.go:67
↓ 2 callers
Function
prfAndHashForVersion
(version uint16, suite *cipherSuite)
prf.go:122
↓ 2 callers
Method
processCertsFromServer
processCertsFromServer takes a chain of server certificates from a Certificate message and verifies them.
handshake_client.go:364
↓ 2 callers
Method
readFinished
(out []byte)
handshake_client.go:763
↓ 2 callers
Method
readFinished
(out []byte)
handshake_server.go:682
↓ 2 callers
Method
readFromUntil
readFromUntil reads from r into b until b contains at least n bytes or else returns an error.
conn.go:570
↓ 2 callers
Method
readSessionTicket
()
handshake_client.go:792
↓ 2 callers
Method
reserve
reserve makes sure that block contains a capacity of at least n bytes.
conn.go:552
↓ 2 callers
Function
runServerTestTLS11
(t *testing.T, template *serverTest)
handshake_server_test.go:698
↓ 2 callers
Method
sendFinished
(out []byte)
handshake_client.go:822
↓ 2 callers
Method
sendFinished
(out []byte)
handshake_server.go:755
↓ 2 callers
Method
sendSessionTicket
()
handshake_server.go:726
↓ 2 callers
Method
serverSum
serverSum returns the contents of the verify_data member of a server's Finished message.
prf.go:310
↓ 2 callers
Method
setCipherSuite
setCipherSuite sets a cipherSuite with the given id as the serverHandshakeState suite if that cipher suite is acceptable to use. It returns a bool ind
handshake_server.go:847
↓ 2 callers
Function
sha1Hash
sha1Hash calculates a SHA1 hash over the given byte slices.
key_agreement.go:88
↓ 2 callers
Function
signAlgosCertList
signAlgosCertList helper function returns either list of signature algorithms in case signature_algorithms_cert extension should be marshalled or nil
handshake_messages.go:17
↓ 2 callers
Function
signatureFromSignatureScheme
signatureFromSignatureScheme maps a signature algorithm to the underlying signature method (without hash function).
common.go:1217
↓ 2 callers
Function
signatureSchemeIsPSS
(s SignatureScheme)
13.go:565
↓ 2 callers
Function
splitPreMasterSecret
Split a premaster secret in two as specified in RFC 4346, section 5.
prf.go:20
↓ 2 callers
Function
supportedSigAlgorithmsCert
supportedSigAlgorithmsCert iterates over schemes and filters out those algorithms which are not supported for certificate verification.
13.go:1163
↓ 2 callers
Function
testClientHello
(t *testing.T, serverConfig *Config, m handshakeMessage)
handshake_server_test.go:71
↓ 2 callers
Function
ticketKeyFromBytes
ticketKeyFromBytes converts from the external representation of a session ticket key to a ticketKey. Externally, session ticket keys are 32 random byt
common.go:673
↓ 2 callers
Function
unmarshalDelegatedCredential
unmarshalDelegatedCredential decodes a DelegatedCredential structure.
subcerts.go:298
↓ 2 callers
Function
unmarshalExtensionSignatureAlgorithms
Function used for unmarshalling signature_algorithms or signature_algorithms_cert extensions only (for more details, see TLS 1.3 draft 28, 4.2.3) In c
handshake_messages.go:84
↓ 2 callers
Function
verifyPeerHandshakeSignature
( certVerify *certificateVerifyMsg, pubKey crypto.PublicKey, signAlgosKnown []SignatureScheme, transHash [
13.go:863
↓ 1 callers
Method
ConfirmHandshake
ConfirmHandshake waits for the handshake to reach a point at which the connection is certainly not replayed. That is, after receiving the Client Finis
conn.go:1345
↓ 1 callers
Method
ConstantTimeSum
(b []byte)
cipher_suites.go:311
↓ 1 callers
Method
Generate
(rand *rand.Rand, size int)
handshake_messages_test.go:319
↓ 1 callers
Function
NewClient
()
_dev/tris-testclient/client.go:54
↓ 1 callers
Function
NewListener
NewListener creates a Listener which accepts connections from an inner Listener and wraps each connection with Server. The configuration config must b
tls.go:63
↓ 1 callers
Function
NewServer
()
_dev/tris-localserver/server.go:41
↓ 1 callers
Method
Read
(b []byte)
handshake_server_test.go:32
↓ 1 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
conn.go:157
↓ 1 callers
Method
Timeout
()
tls.go:88
↓ 1 callers
Method
Unseal
Unseal returns a session ticket contents. The ticket can't be safely assumed to have been generated by Seal. If unable to unseal the ticket, the conne
ticket.go:32
↓ 1 callers
Method
Write
(b []byte)
handshake_test.go:117
↓ 1 callers
Method
WriteTo
(w io.Writer)
handshake_client_test.go:102
← previous
next →
101–200 of 532, ranked by callers