MCPcopy Create free account

hub / github.com/XTLS/REALITY / functions

Functions457 in github.com/XTLS/REALITY

↓ 1 callersFunctionroundUp
(a, b int)
conn.go:335
↓ 1 callersMethodsaveSessionTicket
()
handshake_client.go:1050
↓ 1 callersMethodsendClientCertificate
()
handshake_client_tls13.go:754
↓ 1 callersMethodsendClientFinished
()
handshake_client_tls13.go:828
↓ 1 callersMethodsendServerCertificate
()
handshake_server_tls13.go:936
↓ 1 callersMethodsendServerFinished
()
handshake_server_tls13.go:1004
↓ 1 callersMethodsendServerParameters
()
handshake_server_tls13.go:824
↓ 1 callersMethodserverResumedSession
()
handshake_client.go:875
↓ 1 callersMethodshouldSendSessionTickets
()
handshake_server_tls13.go:1056
↓ 1 callersFunctionsignatureSchemesForCertificate
signatureSchemesForCertificate returns the list of supported SignatureSchemes for a given certificate, based on the public key and the protocol versio
auth.go:171
↓ 1 callersFunctionskipUint16LengthPrefixed
(s *cryptobyte.String)
ech.go:247
↓ 1 callersFunctionsplitPreMasterSecret
Split a premaster secret in two as specified in RFC 4346, Section 5.
prf.go:24
↓ 1 callersFunctionsuiteID
(kemID, kdfID, aeadID uint16)
hpke/hpye.go:312
↓ 1 callersMethodtrafficKey
trafficKey generates traffic keys according to RFC 8446, Section 7.3.
key_schedule.go:28
↓ 1 callersMethodunmarshal
(data []byte)
handshake_messages.go:418
↓ 1 callersMethodunmarshalHandshakeMessage
(data []byte, transcript transcriptHash)
conn.go:1190
↓ 1 callersMethodupdateBinders
updateBinders updates the m.pskBinders field. The supplied binders must have the same length as the current m.pskBinders.
handshake_messages.go:404
↓ 1 callersFunctionvalidDNSName
validDNSName is a rather rudimentary check for the validity of a DNS name. This is used to check if the public_name in a ECHConfig is valid when we ar
ech.go:476
MethodBuildNameToCertificate
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf ce
common.go:1543
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
MethodClose
Close closes the connection and stops any in-progress handshake.
quic.go:245
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:1528
MethodConnectionState
ConnectionState returns basic TLS details about the connection.
conn.go:1685
MethodConnectionState
ConnectionState returns basic TLS details about the connection.
quic.go:338
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:479
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:507
MethodDecryptTicket
DecryptTicket decrypts a ticket encrypted by [Config.EncryptTicket]. It can be used as a [Config.UnwrapSession] implementation. If the ticket can't b
ticket.go:357
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:644
MethodEarlyExporterMasterSecret
EarlyExporterMasterSecret derives the exporter_master_secret from the early secret and the transcript up to the ClientHello.
tls13/tls13.go:164
MethodEncryptTicket
EncryptTicket encrypts a ticket with the [Config]'s configured (or default) session ticket keys. It can be used as a [Config.WrapSession] implementati
ticket.go:316
MethodError
()
common.go:1763
MethodError
()
conn.go:198
MethodError
()
conn.go:613
MethodError
()
alert.go:15
MethodError
()
ech.go:63
MethodError
()
ech.go:511
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:324
MethodGet
Get returns the [ClientSessionState] value associated with a given key. It returns (nil, false) if no value is found.
common.go:1700
MethodHandleData
HandleData handles handshake bytes received from the peer. It may produce connection events, which may be read with [QUICConn.NextEvent].
quic.go:258
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:561
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:707
MethodMarshal
(b *cryptobyte.Builder)
handshake_messages.go:20
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:167
FunctionNewLRUClientSessionCache
NewLRUClientSessionCache returns a [ClientSessionCache] with the given capacity that uses an LRU strategy. If capacity is < 1, a default capacity is u
common.go:1652
FunctionNewResumptionState
NewResumptionState returns a state value that can be returned by [ClientSessionCache.Get] to resume a previous session. state needs to be returned by
ticket.go:424
MethodNextEvent
NextEvent returns the next event occurring on the connection. It returns an event with a Kind of [QUICNoEvent] when no events are available.
quic.go:221
MethodOCSPResponse
OCSPResponse returns the stapled OCSP response from the TLS server, if any. (Only valid for client connections.)
conn.go:1732
MethodOpen
(out, nonce, ciphertext, additionalData []byte)
cipher_suites.go:468
MethodOverhead
()
cipher_suites.go:460
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:1667
FunctionQUICClient
QUICClient returns a new TLS client side connection using QUICTransport as the underlying transport. The config cannot be nil. The config's MinVersio
quic.go:175
FunctionQUICServer
QUICServer returns a new TLS server side connection using QUICTransport as the underlying transport. The config cannot be nil. The config's MinVersio
quic.go:183
MethodRead
(p []byte)
conn.go:849
MethodRead
(b []byte)
tls.go:110
MethodResumptionState
ResumptionState returns the session ticket sent by the server (also known as the session's identity) and the state necessary to resume this session.
ticket.go:412
MethodSeal
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:463
MethodSendSessionTicket
SendSessionTicket sends a session ticket to the client. It produces connection events, which may be read with [QUICConn.NextEvent]. Currently, it can
quic.go:304
MethodSetDeadline
SetDeadline sets the read and write deadlines associated with the connection. A zero value for t means [Conn.Read] and [Conn.Write] will not time out.
conn.go:147
MethodSetDeadline
(t time.Time)
tls.go:92
MethodSetReadDeadline
(t time.Time)
tls.go:96
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:1135
MethodSetTransportParameters
SetTransportParameters sets the transport parameters to send to the peer. Server connections may delay setting the transport parameters until after r
quic.go:346
MethodSetWriteDeadline
(t time.Time)
tls.go:100
MethodStart
Start starts the client or server handshake protocol. It may produce connection events, which may be read with [QUICConn.NextEvent]. Start must be ca
quic.go:204
MethodStoreSession
StoreSession stores a session previously received in a QUICStoreSession event in the ClientSessionCache. The application may process additional events
quic.go:323
MethodString
()
quic.go:24
MethodString
()
common_string.go:41
MethodString
()
common_string.go:87
MethodString
()
common_string.go:115
MethodSupportsCertificate
SupportsCertificate returns nil if the provided certificate is supported by the server that sent the CertificateRequest. Otherwise, it returns an erro
common.go:1507
MethodTemporary
()
tls.go:578
FunctionTestingOnlyAbandon
()
fips140tls/fipstls.go:35
FunctionTestingOnlyExporterSecret
(s *ExporterMasterSecret)
tls13/tls13.go:178
MethodTimeout
()
conn.go:200
MethodTimeout
()
tls.go:577
MethodUnwrap
()
common.go:1767
MethodUnwrap
()
conn.go:199
FunctionVersionName
VersionName returns the name for the provided TLS version number (e.g. "TLS 1.3"), or a fallback representation of the value if the version is not imp
common.go:46
MethodWrite
Write writes data to the connection. As Write calls [Conn.Handshake], in order to prevent indefinite blocking a deadline must be set for both [Conn.R
conn.go:1269
MethodWrite
(b []byte)
tls.go:84
MethodWrite
(b []byte)
record_detect.go:110
MethodWrite
(b []byte)
record_detect.go:144
MethodWrite
(p []byte)
cipher_suites.go:584
MethodWrite
(msg []byte)
prf.go:187
Function_
()
common_string.go:7
FunctionaeadAESGCM
(key, noncePrefix []byte)
cipher_suites.go:508
FunctionaeadAESGCMTLS13
aeadAESGCMTLS13 should be an internal detail, but widely used packages access it using linkname. Notable members of the hall of shame include: - githu
cipher_suites.go:537
FunctionaeadChaCha20Poly1305
(key, nonceMask []byte)
cipher_suites.go:556
MethodcheckForResumption
()
handshake_server_tls13.go:425
Functioncipher3DES
(key, iv []byte, isRead bool)
cipher_suites.go:410
FunctioncipherAES
(key, iv []byte, isRead bool)
cipher_suites.go:418
FunctioncipherRC4
(key, iv []byte, isRead bool)
cipher_suites.go:405
MethodcipherSuiteOk
(c *cipherSuite)
handshake_server.go:420
FunctionecdheECDSAKA
(version uint16)
cipher_suites.go:610
FunctionecdheRSAKA
(version uint16)
cipher_suites.go:617
MethodexplicitNonceLen
()
cipher_suites.go:461
MethodexplicitNonceLen
()
cipher_suites.go:482
MethodgenerateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:82
MethodgenerateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:365
MethodgenerateServerKeyExchange
(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg)
key_agreement.go:46
← previousnext →301–400 of 457, ranked by callers