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
↓ 3 callers
Method
HandshakeSecret
(sharedSecret []byte)
internal/tls13/tls13.go:96
↓ 3 callers
Function
HasGoBuild
HasGoBuild reports whether the current system can build programs with ``go build'' and then run them with os.StartProcess or exec.Command.
testenv/testenv.go:96
↓ 3 callers
Function
InsecureCipherSuites
InsecureCipherSuites returns a list of cipher suites currently implemented by this package and which have security issues. Most applications should n
cipher_suites.go:79
↓ 3 callers
Method
IsInitialized
IsInitialized returns a boolean indicating whether the extension has been initialized. If false is returned, utls will initialize the extension.
u_common.go:820
↓ 3 callers
Method
Len
()
u_session_ticket.go:34
↓ 3 callers
Method
Len
()
u_tls_extensions.go:1058
↓ 3 callers
Method
Len
()
u_tls_extensions.go:1806
↓ 3 callers
Method
LocalAddr
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:134
↓ 3 callers
Method
MasterSecret
MasterSecret generated by client on a full handshake
u_public.go:726
↓ 3 callers
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:220
↓ 3 callers
Function
ParseHPKEPublicKey
(kemID uint16, bytes []byte)
internal/hpke/hpke.go:299
↓ 3 callers
Method
Read
Read reads data from the connection. As Read calls [Conn.Handshake], in order to prevent indefinite blocking a deadline must be set for both Read and
u_conn.go:861
↓ 3 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
conn.go:139
↓ 3 callers
Method
ResumptionMasterSecret
ResumptionMasterSecret derives the resumption_master_secret from the master secret and the transcript up to the client Finished.
internal/tls13/tls13.go:143
↓ 3 callers
Method
Secret
()
internal/tls13/u_tls13.go:12
↓ 3 callers
Method
ServerApplicationTrafficSecret
ServerApplicationTrafficSecret derives the server_application_traffic_secret_0 from the master secret and the transcript up to the server Finished.
internal/tls13/tls13.go:137
↓ 3 callers
Method
ServerHandshakeTrafficSecret
ServerHandshakeTrafficSecret derives the server_handshake_traffic_secret from the handshake secret and the transcript up to the ServerHello.
internal/tls13/tls13.go:112
↓ 3 callers
Method
SetSNI
(sni string)
u_conn.go:267
↓ 3 callers
Function
SetupSender
(kemID, kdfID, aeadID uint16, pub *ecdh.PublicKey, info []byte)
internal/hpke/hpke.go:222
↓ 3 callers
Method
SupportsCertificate
SupportsCertificate returns nil if the provided certificate is supported by the client that sent the ClientHello. Otherwise, it returns an error descr
common.go:1367
↓ 3 callers
Method
Uint64
Int63 is equivalent to math/read.Uint64.
u_prng.go:127
↓ 3 callers
Function
Unreachable
()
internal/boring/notboring.go:18
↓ 3 callers
Method
WriteTo
WriteTo writes Go source code to w that contains the recorded traffic.
handshake_test.go:152
↓ 3 callers
Method
active
active increments the number of references to the entry, wraps the certificate in the entry in an activeCert, and sets the finalizer. Note that there
cache.go:60
↓ 3 callers
Method
assertHelloNotBuilt
(caller string)
u_session_controller.go:106
↓ 3 callers
Function
clientHelloInfo
(ctx context.Context, c *Conn, clientHello *clientHelloMsg)
handshake_server.go:990
↓ 3 callers
Function
computeAndUpdateOuterECHExtension
(outer, inner *clientHelloMsg, ech *echClientContext, useKey bool)
ech.go:416
↓ 3 callers
Method
dataPath
()
handshake_server_test.go:670
↓ 3 callers
Function
decodeInnerClientHello
(outer *clientHelloMsg, encoded []byte)
ech.go:283
↓ 3 callers
Method
decryptTicket
(encrypted []byte, ticketKeys []ticketKey)
ticket.go:365
↓ 3 callers
Function
defaultConfig
()
common.go:1726
↓ 3 callers
Function
ekmFromMasterSecret
ekmFromMasterSecret generates exported keying material as defined in RFC 5705.
prf.go:270
↓ 3 callers
Function
encodeInnerClientHelloReorderOuterExts
[uTLS SECTION END] func encodeInnerClientHello(inner *clientHelloMsg, maxNameLength int) ([]byte, error) {
ech.go:218
↓ 3 callers
Method
encryptTicket
(state []byte, ticketKeys []ticketKey)
ticket.go:320
↓ 3 callers
Function
extract
(hash func() H, newSecret, currentSecret []byte)
internal/tls13/tls13.go:43
↓ 3 callers
Function
fipsAllowedChains
fipsAllowedChains returns chains that are allowed to be used in a TLS connection based on the current fips140tls enforcement setting. If fips140tls i
common.go:1774
↓ 3 callers
Method
getCertificate
getCertificate returns the best certificate for the given ClientHelloInfo, defaulting to the first element of c.Certificates.
common.go:1313
↓ 3 callers
Function
getSharedKey
[uTLS] SECTION BEGIN
handshake_client_tls13.go:567
↓ 3 callers
Method
handlePostHandshakeMessage
handlePostHandshakeMessage processes a handshake message arrived after the handshake is complete. Up to TLS 1.2, it indicates the start of a renegotia
conn.go:1309
↓ 3 callers
Method
helloName
()
u_conn_test.go:39
↓ 3 callers
Method
loadSession
(hello *clientHelloMsg)
handshake_client.go:396
↓ 3 callers
Method
marshalWithoutBinders
marshalWithoutBinders returns the ClientHello through the PreSharedKeyExtension.identities field, according to RFC 8446, Section 4.2.11.2. Note that m
handshake_messages.go:413
↓ 3 callers
Function
masterFromPreMasterSecret
masterFromPreMasterSecret generates the master secret from the pre-master secret. See RFC 5246, Section 8.1.
prf.go:112
↓ 3 callers
Function
mutualCipherSuiteTLS13
(have []uint16, want uint16)
cipher_suites.go:665
↓ 3 callers
Method
mutualVersion
mutualVersion returns the protocol version to use given the advertised versions of the peer. Priority is given to the peer preference order.
common.go:1288
↓ 3 callers
Function
newFinishedHash
(version uint16, cipherSuite *cipherSuite)
prf.go:156
↓ 3 callers
Function
newPRNGWithSeed
newPRNGWithSeed initializes a new PRNG using an existing seed.
u_prng.go:84
↓ 3 callers
Function
panicOnNil
(caller string, params ...any)
u_common.go:773
↓ 3 callers
Function
parseVector
This file contains tests derived from draft-ietf-tls-tls13-vectors-07.
key_schedule_test.go:86
↓ 3 callers
Function
pickECHConfig
(list []echConfig)
ech.go:155
↓ 3 callers
Function
prfAndHashForVersion
(version uint16, suite *cipherSuite)
prf.go:91
↓ 3 callers
Function
prfForVersion
(version uint16, suite *cipherSuite)
prf.go:105
↓ 3 callers
Method
processCertsFromClient
processCertsFromClient takes a chain of client certificates either from a Certificates message and verifies them.
handshake_server.go:908
↓ 3 callers
Function
pskExtLen
(identities []PskIdentity, binders [][]byte)
u_pre_shared_key.go:166
↓ 3 callers
Method
readClientHello
readClientHello reads a ClientHello message and selects the protocol version.
handshake_server.go:136
↓ 3 callers
Method
readRecordOrCCS
readRecordOrCCS reads one or more TLS records from the connection and updates the record layer state. Some invariants: - c.in must be locked - c.input
conn.go:613
↓ 3 callers
Method
requestClientCert
()
handshake_server_tls13.go:819
↓ 3 callers
Function
requiresClientCert
requiresClientCert reports whether the ClientAuthType requires a client certificate to be provided.
common.go:365
↓ 3 callers
Method
retryReadRecord
retryReadRecord recurs into readRecordOrCCS to drop a non-advancing record, like a warning alert, empty application_data, or a change_cipher_spec in T
conn.go:789
↓ 3 callers
Function
runClientTestTLS11
(t *testing.T, template *clientTest)
handshake_client_test.go:487
↓ 3 callers
Method
sendSessionTicket
(earlyData bool, extra [][]byte)
handshake_server_tls13.go:980
↓ 3 callers
Method
supportsCurve
(version uint16, curve CurveID)
common.go:1277
↓ 3 callers
Function
testUTLSHandshakeClientECDHE_ECDSA_AES128_CBC_SHA
(t *testing.T, hello helloStrategy)
u_conn_test.go:282
↓ 3 callers
Function
testUTLSHandshakeClientECDHE_ECDSA_AES128_GCM_SHA256
(t *testing.T, hello helloStrategy)
u_conn_test.go:322
↓ 3 callers
Function
testUTLSHandshakeClientECDHE_ECDSA_AES256_CBC_SHA
(t *testing.T, hello helloStrategy)
u_conn_test.go:296
↓ 3 callers
Function
testUTLSHandshakeClientECDHE_ECDSA_WITH_CHACHA20_POLY1305
(t *testing.T, hello helloStrategy)
u_conn_test.go:428
↓ 3 callers
Function
testUTLSHandshakeClientRSA_AES128_GCM_SHA256
(t *testing.T, hello helloStrategy)
u_conn_test.go:310
↓ 3 callers
Method
ticketKeys
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:1069
↓ 3 callers
Function
tls10MAC
tls10MAC implements the TLS 1.0 MAC function. RFC 2246, Section 6.2.3.
cipher_suites.go:615
↓ 3 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:435
↓ 3 callers
Method
verifyServerCertificate
verifyServerCertificate parses and verifies the provided chain, setting c.verifiedChains and c.peerCertificates or sending the appropriate alert.
handshake_client.go:1122
↓ 2 callers
Method
AlwaysAddPadding
()
u_common.go:270
↓ 2 callers
Function
BEPutUint64
(b []byte, v uint64)
internal/byteorder/byteorder.go:126
↓ 2 callers
Method
ClientHelloSpec
()
u_clienthello_json.go:22
↓ 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:117
↓ 2 callers
Method
DidTls12Resume
()
u_conn.go:203
↓ 2 callers
Function
Expand
(h func() H, pseudorandomKey []byte, info string, keyLength int)
internal/hkdf/hkdf.go:17
↓ 2 callers
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:331
↓ 2 callers
Method
ExporterMasterSecret
ExporterMasterSecret derives the exporter_master_secret from the master secret and the transcript up to the server Finished.
internal/tls13/tls13.go:154
↓ 2 callers
Method
ExtractAndExpand
(dhKey, kemContext []byte)
internal/hpke/hpke.go:83
↓ 2 callers
Method
Handshake
Handshake runs the client handshake using given clientHandshakeState Requires hs.hello, and, optionally, hs.session to be set.
u_conn.go:300
↓ 2 callers
Method
InitializeByUtls
InitializeByUtls is invoked when IsInitialized() returns false. It initializes the extension using a real and valid TLS 1.3 session.
u_pre_shared_key.go:82
↓ 2 callers
Method
Len
()
u_tls_extensions.go:127
↓ 2 callers
Method
Len
()
u_tls_extensions.go:215
↓ 2 callers
Method
Len
()
u_tls_extensions.go:267
↓ 2 callers
Method
Len
()
u_tls_extensions.go:343
↓ 2 callers
Method
Len
()
u_tls_extensions.go:404
↓ 2 callers
Method
Len
()
u_tls_extensions.go:484
↓ 2 callers
Method
Len
()
u_tls_extensions.go:533
↓ 2 callers
Method
Len
()
u_tls_extensions.go:619
↓ 2 callers
Method
Len
(supportedProtocols []string)
u_tls_extensions.go:700
↓ 2 callers
Method
Len
()
u_tls_extensions.go:845
↓ 2 callers
Method
Len
()
u_tls_extensions.go:880
↓ 2 callers
Method
Len
()
u_tls_extensions.go:932
↓ 2 callers
Method
Len
()
u_tls_extensions.go:989
↓ 2 callers
Method
Len
()
u_tls_extensions.go:1155
↓ 2 callers
Method
Len
()
u_tls_extensions.go:1230
↓ 2 callers
Method
Len
()
u_tls_extensions.go:1346
↓ 2 callers
Method
Len
()
u_tls_extensions.go:1378
↓ 2 callers
Method
Len
()
u_tls_extensions.go:1455
← previous
next →
201–300 of 1,354, ranked by callers