Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XTLS/REALITY
/ functions
Functions
457 in github.com/XTLS/REALITY
⨍
Functions
457
◇
Types & classes
108
↓ 1 callers
Function
roundUp
(a, b int)
conn.go:335
↓ 1 callers
Method
saveSessionTicket
()
handshake_client.go:1050
↓ 1 callers
Method
sendClientCertificate
()
handshake_client_tls13.go:754
↓ 1 callers
Method
sendClientFinished
()
handshake_client_tls13.go:828
↓ 1 callers
Method
sendServerCertificate
()
handshake_server_tls13.go:936
↓ 1 callers
Method
sendServerFinished
()
handshake_server_tls13.go:1004
↓ 1 callers
Method
sendServerParameters
()
handshake_server_tls13.go:824
↓ 1 callers
Method
serverResumedSession
()
handshake_client.go:875
↓ 1 callers
Method
shouldSendSessionTickets
()
handshake_server_tls13.go:1056
↓ 1 callers
Function
signatureSchemesForCertificate
signatureSchemesForCertificate returns the list of supported SignatureSchemes for a given certificate, based on the public key and the protocol versio
auth.go:171
↓ 1 callers
Function
skipUint16LengthPrefixed
(s *cryptobyte.String)
ech.go:247
↓ 1 callers
Function
splitPreMasterSecret
Split a premaster secret in two as specified in RFC 4346, Section 5.
prf.go:24
↓ 1 callers
Function
suiteID
(kemID, kdfID, aeadID uint16)
hpke/hpye.go:312
↓ 1 callers
Method
trafficKey
trafficKey generates traffic keys according to RFC 8446, Section 7.3.
key_schedule.go:28
↓ 1 callers
Method
unmarshal
(data []byte)
handshake_messages.go:418
↓ 1 callers
Method
unmarshalHandshakeMessage
(data []byte, transcript transcriptHash)
conn.go:1190
↓ 1 callers
Method
updateBinders
updateBinders updates the m.pskBinders field. The supplied binders must have the same length as the current m.pskBinders.
handshake_messages.go:404
↓ 1 callers
Function
validDNSName
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
Method
BuildNameToCertificate
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf ce
common.go:1543
Function
CipherSuiteName
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
Method
Close
Close closes the connection and stops any in-progress handshake.
quic.go:245
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:1528
Method
ConnectionState
ConnectionState returns basic TLS details about the connection.
conn.go:1685
Method
ConnectionState
ConnectionState returns basic TLS details about the connection.
quic.go:338
Method
Context
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
Method
Context
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
Method
DecryptTicket
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
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:644
Method
EarlyExporterMasterSecret
EarlyExporterMasterSecret derives the exporter_master_secret from the early secret and the transcript up to the ClientHello.
tls13/tls13.go:164
Method
EncryptTicket
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
Method
Error
()
common.go:1763
Method
Error
()
conn.go:198
Method
Error
()
conn.go:613
Method
Error
()
alert.go:15
Method
Error
()
ech.go:63
Method
Error
()
ech.go:511
Method
ExportKeyingMaterial
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
Method
Get
Get returns the [ClientSessionState] value associated with a given key. It returns (nil, false) if no value is found.
common.go:1700
Method
HandleData
HandleData handles handshake bytes received from the peer. It may produce connection events, which may be read with [QUICConn.NextEvent].
quic.go:258
Function
Listen
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
Function
LoadX509KeyPair
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
Method
Marshal
(b *cryptobyte.Builder)
handshake_messages.go:20
Method
NetConn
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
Function
NewLRUClientSessionCache
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
Function
NewResumptionState
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
Method
NextEvent
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
Method
OCSPResponse
OCSPResponse returns the stapled OCSP response from the TLS server, if any. (Only valid for client connections.)
conn.go:1732
Method
Open
(out, nonce, ciphertext, additionalData []byte)
cipher_suites.go:468
Method
Overhead
()
cipher_suites.go:460
Method
Put
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
Function
QUICClient
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
Function
QUICServer
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
Method
Read
(p []byte)
conn.go:849
Method
Read
(b []byte)
tls.go:110
Method
ResumptionState
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
Method
Seal
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:463
Method
SendSessionTicket
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
Method
SetDeadline
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
Method
SetDeadline
(t time.Time)
tls.go:92
Method
SetReadDeadline
(t time.Time)
tls.go:96
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 f
common.go:1135
Method
SetTransportParameters
SetTransportParameters sets the transport parameters to send to the peer. Server connections may delay setting the transport parameters until after r
quic.go:346
Method
SetWriteDeadline
(t time.Time)
tls.go:100
Method
Start
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
Method
StoreSession
StoreSession stores a session previously received in a QUICStoreSession event in the ClientSessionCache. The application may process additional events
quic.go:323
Method
String
()
quic.go:24
Method
String
()
common_string.go:41
Method
String
()
common_string.go:87
Method
String
()
common_string.go:115
Method
SupportsCertificate
SupportsCertificate returns nil if the provided certificate is supported by the server that sent the CertificateRequest. Otherwise, it returns an erro
common.go:1507
Method
Temporary
()
tls.go:578
Function
TestingOnlyAbandon
()
fips140tls/fipstls.go:35
Function
TestingOnlyExporterSecret
(s *ExporterMasterSecret)
tls13/tls13.go:178
Method
Timeout
()
conn.go:200
Method
Timeout
()
tls.go:577
Method
Unwrap
()
common.go:1767
Method
Unwrap
()
conn.go:199
Function
VersionName
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
Method
Write
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
Method
Write
(b []byte)
tls.go:84
Method
Write
(b []byte)
record_detect.go:110
Method
Write
(b []byte)
record_detect.go:144
Method
Write
(p []byte)
cipher_suites.go:584
Method
Write
(msg []byte)
prf.go:187
Function
_
()
common_string.go:7
Function
aeadAESGCM
(key, noncePrefix []byte)
cipher_suites.go:508
Function
aeadAESGCMTLS13
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
Function
aeadChaCha20Poly1305
(key, nonceMask []byte)
cipher_suites.go:556
Method
checkForResumption
()
handshake_server_tls13.go:425
Function
cipher3DES
(key, iv []byte, isRead bool)
cipher_suites.go:410
Function
cipherAES
(key, iv []byte, isRead bool)
cipher_suites.go:418
Function
cipherRC4
(key, iv []byte, isRead bool)
cipher_suites.go:405
Method
cipherSuiteOk
(c *cipherSuite)
handshake_server.go:420
Function
ecdheECDSAKA
(version uint16)
cipher_suites.go:610
Function
ecdheRSAKA
(version uint16)
cipher_suites.go:617
Method
explicitNonceLen
()
cipher_suites.go:461
Method
explicitNonceLen
()
cipher_suites.go:482
Method
generateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:82
Method
generateClientKeyExchange
(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate)
key_agreement.go:365
Method
generateServerKeyExchange
(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg)
key_agreement.go:46
← previous
next →
301–400 of 457, ranked by callers