MCPcopy Create free account

hub / github.com/XTLS/Go / functions

Functions328 in github.com/XTLS/Go

↓ 1 callersMethodprocessClientKeyExchange
(*Config, *Certificate, *clientKeyExchangeMsg, uint16)
key_agreement.go:27
↓ 1 callersMethodprocessHelloRetryRequest
processHelloRetryRequest handles the HRR in hs.serverHello, modifies and resends hs.hello, and reads the new ServerHello into hs.serverHello.
handshake_client_tls13.go:177
↓ 1 callersMethodprocessServerHello
()
handshake_client.go:684
↓ 1 callersMethodprocessServerHello
()
handshake_client_tls13.go:287
↓ 1 callersMethodprocessServerKeyExchange
On the client side, the next two methods are called in order. This method may not be called if the server doesn't send a ServerKeyExchange message.
key_agreement.go:33
↓ 1 callersFunctionpublicKey
(priv any)
generate_cert.go:40
↓ 1 callersMethodreadClientCertificate
()
handshake_server_tls13.go:765
↓ 1 callersMethodreadClientFinished
()
handshake_server_tls13.go:850
↓ 1 callersMethodreadClientHello
readClientHello reads a ClientHello message and selects the protocol version.
handshake_server.go:131
↓ 1 callersMethodreadServerCertificate
()
handshake_client_tls13.go:408
↓ 1 callersMethodreadServerFinished
()
handshake_client_tls13.go:497
↓ 1 callersMethodreadServerParameters
()
handshake_client_tls13.go:384
↓ 1 callersFunctionroundUp
(a, b int)
conn.go:346
↓ 1 callersMethodsendClientCertificate
()
handshake_client_tls13.go:543
↓ 1 callersMethodsendClientFinished
()
handshake_client_tls13.go:612
↓ 1 callersMethodsendServerCertificate
()
handshake_server_tls13.go:574
↓ 1 callersMethodsendServerFinished
()
handshake_server_tls13.go:644
↓ 1 callersMethodsendServerParameters
()
handshake_server_tls13.go:514
↓ 1 callersMethodserverResumedSession
()
handshake_client.go:677
↓ 1 callersMethodshouldSendSessionTickets
()
handshake_server_tls13.go:692
↓ 1 callersFunctionsignatureSchemesForCertificate
signatureSchemesForCertificate returns the list of supported SignatureSchemes for a given certificate, based on the public key and the protocol versio
auth.go:172
↓ 1 callersFunctionsplitPreMasterSecret
Split a premaster secret in two as specified in RFC 4346, Section 5.
prf.go:20
↓ 1 callersMethodticketKeys
ticketKeys returns the ticketKeys for this connection. If configForClient has explicitly set keys, those will be returned. Otherwise, the keys on c wi
common.go:863
↓ 1 callersMethodtrafficKey
trafficKey generates traffic keys according to RFC 8446, Section 7.3.
key_schedule.go:76
MethodAccept
Accept waits for and returns the next incoming TLS connection. The returned connection is of type *Conn.
tls.go:65
MethodBuildNameToCertificate
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf ce
common.go:1300
FunctionCipherSuiteName
CipherSuiteName returns the standard name for the passed cipher suite ID (e.g. "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"), or a fallback representatio
cipher_suites.go:99
MethodCloseWrite
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:1633
MethodConnectionState
ConnectionState returns basic TLS details about the connection.
conn.go:1758
MethodContext
Context returns the context of the handshake that is in progress. This context is a child of the context passed to HandshakeContext, if any, and is ca
common.go:452
MethodContext
Context returns the context of the handshake that is in progress. This context is a child of the context passed to HandshakeContext, if any, and is ca
common.go:480
MethodCurveID
()
key_schedule.go:158
MethodCurveID
()
key_schedule.go:185
FunctionDial
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:170
MethodDial
Dial connects to the given network address and initiates a TLS handshake, returning the resulting TLS connection. The returned Conn, if any, will alw
tls.go:196
MethodError
()
conn.go:210
MethodError
()
conn.go:597
MethodError
()
tls.go:102
MethodExportKeyingMaterial
ExportKeyingMaterial returns length bytes of exported key material in a new slice as defined in RFC 5705. If context is nil, it is not used as part of
common.go:285
MethodGet
Get returns the ClientSessionState value associated with a given key. It returns (nil, false) if no value is found.
common.go:1448
FunctionListen
Listen creates a TLS listener accepting connections on the given network address using net.Listen. The configuration config must be non-nil and must i
tls.go:88
FunctionLoadX509KeyPair
LoadX509KeyPair reads and parses a public/private key pair from a pair of files. The files must contain PEM encoded data. The certificate file may con
tls.go:230
MethodLocalAddr
Access to net.Conn methods. Cannot just embed net.Conn because that would export the struct field too. LocalAddr returns the local network address.
conn.go:151
MethodNetConn
NetConn returns the underlying connection that is wrapped by c. Note that writing to or reading from this connection directly will corrupt the TLS ses
conn.go:183
FunctionNewLRUClientSessionCache
NewLRUClientSessionCache returns a ClientSessionCache with the given capacity that uses an LRU strategy. If capacity is < 1, a default capacity is use
common.go:1400
MethodNonceSize
()
cipher_suites.go:476
MethodOCSPResponse
OCSPResponse returns the stapled OCSP response from the TLS server, if any. (Only valid for client connections.)
conn.go:1794
MethodOpen
(out, nonce, ciphertext, additionalData []byte)
cipher_suites.go:464
MethodOverhead
()
cipher_suites.go:456
MethodPublicKey
()
key_schedule.go:162
MethodPublicKey
()
key_schedule.go:189
MethodPut
Put adds the provided (sessionKey, cs) pair to the cache. If cs is nil, the entry corresponding to sessionKey is removed from the cache instead.
common.go:1415
MethodRead
(p []byte)
conn.go:882
MethodSeal
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:459
MethodSetDeadline
SetDeadline sets the read and write deadlines associated with the connection. A zero value for t means Read and Write will not time out. After a Write
conn.go:163
MethodSetReadDeadline
SetReadDeadline sets the read deadline on the underlying connection. A zero value for t means Read will not time out.
conn.go:169
MethodSetSessionTicketKeys
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 f
common.go:931
MethodSharedKey
(peerPublicKey []byte)
key_schedule.go:167
MethodSharedKey
(peerPublicKey []byte)
key_schedule.go:193
MethodString
()
common_string.go:41
MethodString
()
common_string.go:85
MethodString
()
common_string.go:111
MethodSupportsCertificate
SupportsCertificate returns nil if the provided certificate is supported by the server that sent the CertificateRequest. Otherwise, it returns an erro
common.go:1264
MethodTemporary
()
tls.go:104
MethodTimeout
()
conn.go:212
MethodTimeout
()
tls.go:103
MethodUnwrap
()
conn.go:211
Function_
()
common_string.go:7
FunctionaeadAESGCM
(key, noncePrefix []byte)
cipher_suites.go:504
FunctionaeadAESGCMTLS13
(key, nonceMask []byte)
cipher_suites.go:522
FunctionaeadChaCha20Poly1305
(key, nonceMask []byte)
cipher_suites.go:540
Functioncipher3DES
(key, iv []byte, isRead bool)
cipher_suites.go:406
FunctioncipherAES
(key, iv []byte, isRead bool)
cipher_suites.go:414
FunctioncipherRC4
(key, iv []byte, isRead bool)
cipher_suites.go:401
MethodcipherSuiteOk
(c *cipherSuite)
handshake_server.go:368
FunctionecdheECDSAKA
(version uint16)
cipher_suites.go:594
FunctionecdheRSAKA
(version uint16)
cipher_suites.go:601
MethodexplicitNonceLen
()
cipher_suites.go:457
MethodexplicitNonceLen
()
cipher_suites.go:478
MethodgenerateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:80
MethodgenerateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:351
MethodgenerateServerKeyExchange
(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg)
key_agreement.go:44
MethodgenerateServerKeyExchange
(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg)
key_agreement.go:168
Methodhandshake
handshake requires hs.c, hs.hello, hs.serverHello, hs.ecdheParams, and, optionally, hs.session, hs.earlySecret and hs.binderKey to be set.
handshake_client_tls13.go:41
Methodhandshake
()
handshake_server_tls13.go:45
FunctionmacSHA1
macSHA1 returns a SHA-1 based constant time MAC.
cipher_suites.go:423
FunctionmacSHA256
macSHA256 returns a SHA-256 based MAC. This is only supported in TLS 1.2 and is currently only used in disabled-by-default cipher suites.
cipher_suites.go:429
Functionmain
()
generate_cert.go:53
Methodmarshal
()
handshake_messages.go:858
Methodmarshal
()
handshake_messages.go:929
Methodmarshal
()
handshake_messages.go:992
Methodmarshal
()
handshake_messages.go:1073
Methodmarshal
()
handshake_messages.go:1219
Methodmarshal
()
handshake_messages.go:1298
Methodmarshal
()
handshake_messages.go:1442
Methodmarshal
()
handshake_messages.go:1472
Methodmarshal
()
handshake_messages.go:1506
Methodmarshal
()
handshake_messages.go:1521
Methodmarshal
()
handshake_messages.go:1767
Methodmarshal
()
handshake_messages.go:1814
← previousnext →201–300 of 328, ranked by callers