Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/refraction-networking/utls
/ functions
Functions
1,354 in github.com/refraction-networking/utls
⨍
Functions
1,354
◇
Types & classes
248
↓ 2 callers
Method
quicSetTransportParameters
(params []byte)
quic.go:438
↓ 2 callers
Method
readChangeCipherSpec
()
conn.go:595
↓ 2 callers
Method
readFinished
(out []byte)
handshake_client.go:999
↓ 2 callers
Method
readFinished
(out []byte)
handshake_server.go:811
↓ 2 callers
Method
readFromUntil
readFromUntil reads from r into c.rawInput until c.rawInput contains at least n bytes or else returns an error.
conn.go:823
↓ 2 callers
Method
readHandshakeBytes
readHandshakeBytes reads handshake data until c.hand contains at least n bytes.
conn.go:1074
↓ 2 callers
Function
readPskIntoBytes
(b []byte, identities []PskIdentity, binders [][]byte)
u_pre_shared_key.go:195
↓ 2 callers
Method
readSessionTicket
()
handshake_client.go:1034
↓ 2 callers
Function
runServerTestTLS11
(t *testing.T, template *serverTest)
handshake_server_test.go:786
↓ 2 callers
Function
runTestAndUpdateIfNeeded
(t *testing.T, name string, run func(t *testing.T, update bool), wait bool)
handshake_test.go:52
↓ 2 callers
Method
sendDummyChangeCipherSpec
sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility with middleboxes that didn't implement TLS correctly. See RFC 8446, Append
handshake_client_tls13.go:238
↓ 2 callers
Method
sendDummyChangeCipherSpec
sendDummyChangeCipherSpec sends a ChangeCipherSpec record for compatibility with middleboxes that didn't implement TLS correctly. See RFC 8446, Append
handshake_server_tls13.go:534
↓ 2 callers
Method
sendFinished
(out []byte)
handshake_client.go:1083
↓ 2 callers
Method
sendFinished
(out []byte)
handshake_server.go:888
↓ 2 callers
Method
sendSessionTicket
()
handshake_server.go:846
↓ 2 callers
Method
sendSessionTickets
()
handshake_server_tls13.go:961
↓ 2 callers
Method
serverSum
serverSum returns the contents of the verify_data member of a server's Finished message.
prf.go:221
↓ 2 callers
Method
setPskToUConn
setPskToUConn sets the psk to the handshake state and client hello.
u_session_controller.go:197
↓ 2 callers
Method
setSessionTicketToUConn
setSessionTicketToUConn write the ticket states from the session ticket extension to the client hello and handshake state.
u_session_controller.go:189
↓ 2 callers
Function
sha1Hash
sha1Hash calculates a SHA1 hash over the given byte slices.
key_agreement.go:107
↓ 2 callers
Method
shouldUpdateBinders
shouldUpdateBinders determines whether binders should be updated based on the presence of an initialized psk extension. This function returns true if
u_session_controller.go:219
↓ 2 callers
Function
skipUint8LengthPrefixed
(s *cryptobyte.String)
ech.go:236
↓ 2 callers
Function
sliceEq
(sliceA []T, sliceB []T)
u_common.go:805
↓ 2 callers
Function
splitPreMasterSecret
Split a premaster secret in two as specified in RFC 4346, Section 5.
prf.go:24
↓ 2 callers
Function
supportedVersionsFromMax
supportedVersionsFromMax returns a list of supported versions derived from a legacy maximum version value. Note that only versions supported by this l
common.go:1246
↓ 2 callers
Function
supportsECDHE
supportsECDHE returns whether ECDHE key exchanges can be used with this pre-TLS 1.3 client.
handshake_server.go:350
↓ 2 callers
Function
testBuffering
(t *testing.T, version uint16)
handshake_client_test.go:2150
↓ 2 callers
Function
testClientHello
(t *testing.T, serverConfig *Config, m handshakeMessage)
handshake_server_test.go:33
↓ 2 callers
Function
testCrossVersionResume
(t *testing.T, version uint16)
handshake_server_test.go:519
↓ 2 callers
Function
testECHSpec
(t *testing.T, spec *ClientHelloSpec, expectSuccess bool)
tls_test.go:2072
↓ 2 callers
Function
testGetClientCertificate
(t *testing.T, version uint16)
handshake_client_test.go:2374
↓ 2 callers
Function
testQUICEarlyDataDeclined
(t *testing.T, server bool)
quic_test.go:571
↓ 2 callers
Function
testResumption
(t *testing.T, version uint16)
handshake_client_test.go:849
↓ 2 callers
Function
testResumptionKeepsOCSPAndSCT
(t *testing.T, ver uint16)
handshake_client_test.go:2558
↓ 2 callers
Function
testSCTHandshake
(t *testing.T, version uint16)
handshake_server_test.go:486
↓ 2 callers
Function
testUTLSHandshakeClientTLS13_AES_128_GCM_SHA256
(t *testing.T, hello helloStrategy)
u_conn_test.go:376
↓ 2 callers
Function
testUTLSHandshakeClientTLS13_AES_256_GCM_SHA384
(t *testing.T, hello helloStrategy)
u_conn_test.go:389
↓ 2 callers
Function
testUTLSHandshakeClientTLS13_CHACHA20_POLY1305_SHA256
(t *testing.T, hello helloStrategy)
u_conn_test.go:402
↓ 2 callers
Function
testUtlsHandshake
(t *testing.T, clientConfig, serverConfig *Config, spec *ClientHelloSpec)
handshake_test.go:482
↓ 2 callers
Function
testVerifyCertificates
(t *testing.T, version uint16)
tls_test.go:1728
↓ 2 callers
Function
testVerifyConnection
(t *testing.T, version uint16)
handshake_client_test.go:1573
↓ 2 callers
Function
testVerifyPeerCertificate
(t *testing.T, version uint16)
handshake_client_test.go:1800
↓ 2 callers
Function
throughput
(b *testing.B, version uint16, totalBytes int64, dynamicRecordSizingDisabled bool)
tls_test.go:949
↓ 2 callers
Method
toPrivate
()
u_public.go:255
↓ 2 callers
Method
toPublic
()
u_public.go:242
↓ 2 callers
Method
trafficKey
trafficKey generates traffic keys according to RFC 8446, Section 7.3.
key_schedule.go:28
↓ 2 callers
Function
unmarshalCertificate
(s *cryptobyte.String, certificate *Certificate)
handshake_messages.go:1580
↓ 1 callers
Function
AlwaysPadToLen
AlwaysPadToLen could be used for parsed ClientHello, since some fingerprints might not use BoringSSL padding style and we want to pad to a the same le
u_tls_extensions.go:1126
↓ 1 callers
Method
ApplyConfig
()
u_conn.go:483
↓ 1 callers
Function
CPUIsSlow
CPUIsSlow reports whether the CPU running the test is suspected to be slow.
testenv/testenv.go:350
↓ 1 callers
Function
CanInternalLink
CanInternalLink reports whether the current system can link programs with internal linking. (This is the opposite of cmd/internal/sys.MustLinkExternal
testenv/testenv.go:257
↓ 1 callers
Method
CipherSuites
()
u_clienthello_json.go:58
↓ 1 callers
Method
CompressionMethods
()
u_clienthello_json.go:83
↓ 1 callers
Method
ConstantTimeSum
(b []byte)
cipher_suites.go:592
↓ 1 callers
Method
Decap
(encPubEph []byte, secRecipient *ecdh.PrivateKey)
internal/hpke/hpke.go:110
↓ 1 callers
Method
EarlyExporterMasterSecret
EarlyExporterMasterSecret derives the exporter_master_secret from the early secret and the transcript up to the ClientHello.
internal/tls13/tls13.go:163
↓ 1 callers
Method
Encap
(pubRecipient *ecdh.PublicKey)
internal/hpke/hpke.go:88
↓ 1 callers
Method
Exporter
(label string, context []byte, length int)
internal/tls13/tls13.go:170
↓ 1 callers
Method
Extensions
()
u_clienthello_json.go:150
↓ 1 callers
Method
FromRaw
FromRaw converts a ClientHello message in the form of raw bytes into a ClientHelloSpec. ctrlFlags: []bool{bluntMimicry, realPSK}
u_common.go:483
↓ 1 callers
Method
GetCiphers
()
u_parrots.go:3219
↓ 1 callers
Method
GetGREASEID
GetGREASEID returns a random valid GREASE ID for transport parameters.
u_quic_transport_parameters.go:81
↓ 1 callers
Method
GetGREASEVersion
()
u_quic_transport_parameters.go:263
↓ 1 callers
Method
GetPreSharedKeyCommon
GetPreSharedKeyCommon retrieves the final PreSharedKey-related states as defined in PreSharedKeyCommon.
u_pre_shared_key.go:85
↓ 1 callers
Method
GetSession
()
u_session_ticket.go:15
↓ 1 callers
Method
GetTicket
()
u_session_ticket.go:17
↓ 1 callers
Function
GoTool
GoTool reports the path to the Go tool.
testenv/testenv.go:157
↓ 1 callers
Function
GoToolPath
GoToolPath reports the path to the Go tool. It is a convenience wrapper around GoTool. If the tool is unavailable GoToolPath calls t.Skip. If the tool
testenv/testenv.go:141
↓ 1 callers
Method
HandshakeContext
HandshakeContext runs the client or server handshake protocol if it has not yet been run. The provided Context must be non-nil. If the context is can
u_conn.go:311
↓ 1 callers
Function
HasExec
HasExec reports whether the current system can start new processes using os.StartProcess or (more commonly) exec.Command.
testenv/testenv.go:178
↓ 1 callers
Function
HasGoRun
HasGoRun reports whether the current system can run programs with ``go run.''
testenv/testenv.go:124
↓ 1 callers
Function
HasLink
HasLink reports whether the current system can use os.Link.
testenv/testenv.go:296
↓ 1 callers
Function
HttpGetByHelloID
(hostname string, addr string, helloID tls.ClientHelloID)
examples/old/examples.go:38
↓ 1 callers
Function
HttpGetConsistentRandomized
this example generates a randomized fingeprint, then re-uses it in a follow-up connection
examples/old/examples.go:56
↓ 1 callers
Function
HttpGetCustom
var requestHostname = "defo.ie" // speaks http2 and TLS 1.3 and ECH and PQ var requestAddr = "defo.ie:443" var requestPath = "/ech-check.php" var requ
examples/ech/main.go:42
↓ 1 callers
Function
HttpGetCustom
(hostname string, addr string)
examples/old/examples.go:189
↓ 1 callers
Function
HttpGetDefault
(hostname string, addr string)
examples/old/examples.go:27
↓ 1 callers
Function
HttpGetExplicitRandom
(hostname string, addr string)
examples/old/examples.go:86
↓ 1 callers
Function
HttpGetGoogleWithRoller
this example creates a new roller for each function call, however it is advised to reuse the Roller
examples/old/examples.go:263
↓ 1 callers
Function
HttpGetTicket
Note that the server will reject the fake ticket(unless you set up your server to accept them) and do full handshake
examples/old/examples.go:119
↓ 1 callers
Function
HttpGetTicketHelloID
Note that the server will reject the fake ticket(unless you set up your server to accept them) and do full handshake
examples/old/examples.go:159
↓ 1 callers
Method
ID
()
u_quic_transport_parameters.go:60
↓ 1 callers
Method
ImportTLSClientHello
Import TLS ClientHello data from client.tlsfingerprint.io:8443 data is a map of []byte with following keys: - cipher_suites: [10, 10, 19, 1, 19, 2, 1
u_common.go:307
↓ 1 callers
Method
IsGREASEID
IsGREASEID returns true if id is a valid GREASE ID for transport parameters.
u_quic_transport_parameters.go:76
↓ 1 callers
Function
LEUint32
(b []byte)
internal/byteorder/byteorder.go:27
↓ 1 callers
Function
Len
Len determines the number of bytes that will be needed to write the number i.
internal/quicvarint/varint.go:127
↓ 1 callers
Method
Len
()
u_pre_shared_key.go:353
↓ 1 callers
Method
MarshalBinary
()
handshake_server_tls13.go:476
↓ 1 callers
Method
MarshalClientHello
()
u_conn.go:567
↓ 1 callers
Function
MasterSecret
MasterSecret implements the TLS 1.2 extended master secret derivation, as defined in RFC 7627 and allowed by SP 800-135, Revision 1, Section 4.2.2.
internal/tls12/tls12.go:49
↓ 1 callers
Function
MustHaveExec
MustHaveExec checks that the current system can start new processes using os.StartProcess or (more commonly) exec.Command. If not, MustHaveExec calls
testenv/testenv.go:198
↓ 1 callers
Function
MustHaveExternalNetwork
MustHaveExternalNetwork checks that the current system can use external (non-localhost) networks. If not, MustHaveExternalNetwork calls t.Skip with an
testenv/testenv.go:231
↓ 1 callers
Function
NewClientSessionCache
()
examples/tls-resumption/main.go:16
↓ 1 callers
Function
NewGCMTLS
(_ cipher.Block)
internal/boring/notboring.go:10
↓ 1 callers
Function
NewGCMTLS13
(_ cipher.Block)
internal/boring/notboring.go:14
↓ 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
tls.go:77
↓ 1 callers
Function
NewMasterSecretFromSecret
(hash func() H, secret []byte)
internal/tls13/u_tls13.go:19
↓ 1 callers
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:420
↓ 1 callers
Method
NonceSize
()
cipher_suites.go:463
↓ 1 callers
Function
ParseHPKEPrivateKey
(kemID uint16, bytes []byte)
internal/hpke/hpke.go:307
← previous
next →
401–500 of 1,354, ranked by callers