Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/refraction-networking/utls
/ functions
Functions
1,354 in github.com/refraction-networking/utls
⨍
Functions
1,354
◇
Types & classes
248
↓ 1 callers
Method
onLoadSessionReturn
onLoadSessionReturn is intended to be invoked upon returning from the `conn.loadSession` function. It serves as a validation step for the correctness
u_session_controller.go:335
↓ 1 callers
Method
overridePskExt
overridePskExt allows the user of utls to customize the psk extension.
u_session_controller.go:243
↓ 1 callers
Method
overrideSessionTicketExt
overridePskExt allows the user of utls to customize the session ticket extension.
u_session_controller.go:248
↓ 1 callers
Function
pHash
pHash implements the P_hash function, as defined in RFC 5246, Section 5.
internal/tls12/tls12.go:25
↓ 1 callers
Function
parsePrivateKey
Attempt to parse the given private key DER block. OpenSSL 0.9.8 generates PKCS #1 private keys by default, while OpenSSL 1.0.0 generates PKCS #8 keys.
tls.go:356
↓ 1 callers
Function
peekError
peekError does a read with a short timeout to check if the next read would cause an error, for example if there is an alert waiting on the wire.
handshake_client_test.go:459
↓ 1 callers
Method
pickCipherSuite
()
handshake_client.go:665
↓ 1 callers
Function
prfFuncV1ToV2
(v1 prfFuncOld)
u_public.go:571
↓ 1 callers
Function
prfFuncV2ToV1
(v2 prfFunc)
u_public.go:579
↓ 1 callers
Method
private13KeyShareKeys
()
u_public.go:67
↓ 1 callers
Method
processClientKeyExchange
(*Config, *Certificate, *clientKeyExchangeMsg, uint16)
key_agreement.go:28
↓ 1 callers
Method
processECHClientHello
(outer *clientHelloMsg)
ech.go:559
↓ 1 callers
Method
processHelloRetryRequest
processHelloRetryRequest handles the HRR in hs.serverHello, modifies and resends hs.hello, and reads the new ServerHello into hs.serverHello.
handshake_client_tls13.go:252
↓ 1 callers
Method
processServerHello
()
handshake_client.go:904
↓ 1 callers
Method
processServerHello
()
handshake_client_tls13.go:506
↓ 1 callers
Method
processServerKeyExchange
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:34
↓ 1 callers
Function
publicKey
(priv any)
generate_cert.go:40
↓ 1 callers
Method
quicReadHandshakeBytes
(n int)
quic.go:375
↓ 1 callers
Method
quicStoreSession
(session *SessionState)
quic.go:431
↓ 1 callers
Method
quicWriteCryptoData
(level QUICEncryptionLevel, data []byte)
quic.go:402
↓ 1 callers
Method
randomizePayload
(encodedHelloInnerLen uint16)
u_ech.go:149
↓ 1 callers
Method
readClientCertificate
()
handshake_server_tls13.go:1036
↓ 1 callers
Method
readClientFinished
()
handshake_server_tls13.go:1125
↓ 1 callers
Method
readServerCertificate
()
handshake_client_tls13.go:762
↓ 1 callers
Method
readServerFinished
()
handshake_client_tls13.go:879
↓ 1 callers
Method
readServerParameters
()
handshake_client_tls13.go:685
↓ 1 callers
Function
readUint64
readUint64 decodes a big-endian, 64-bit value into out and advances over it. It reports whether the read was successful.
handshake_messages.go:44
↓ 1 callers
Function
removeRC4Ciphers
(s []uint16)
u_parrots.go:3227
↓ 1 callers
Function
removeRandomCiphers
(r *prng, s []uint16, maxRemovalProbability float64)
u_parrots.go:3160
↓ 1 callers
Method
removeSNIExtension
()
u_conn.go:288
↓ 1 callers
Function
runMain
(m *testing.M)
handshake_test.go:427
↓ 1 callers
Method
runUTLS
(t *testing.T, write bool, hello helloStrategy, omitSNIExtension bool)
u_conn_test.go:462
↓ 1 callers
Method
saveSessionTicket
()
handshake_client.go:1059
↓ 1 callers
Method
sendClientCertificate
()
handshake_client_tls13.go:928
↓ 1 callers
Method
sendClientEncryptedExtensions
()
u_handshake_client.go:131
↓ 1 callers
Method
sendClientFinished
()
handshake_client_tls13.go:1002
↓ 1 callers
Method
sendServerCertificate
()
handshake_server_tls13.go:823
↓ 1 callers
Method
sendServerFinished
()
handshake_server_tls13.go:890
↓ 1 callers
Method
sendServerParameters
()
handshake_server_tls13.go:728
↓ 1 callers
Method
serverFinishedReceived
to be called in (*clientHandshakeStateTLS13).handshake(), after hs.readServerFinished() and before hs.sendClientCertificate()
u_handshake_client.go:124
↓ 1 callers
Method
serverResumedSession
()
handshake_client.go:897
↓ 1 callers
Method
setReadSecret
(level QUICEncryptionLevel, suite uint16, secret []byte)
quic_test.go:54
↓ 1 callers
Method
setWriteSecret
(level QUICEncryptionLevel, suite uint16, secret []byte)
quic_test.go:77
↓ 1 callers
Method
shouldLoadSession
shouldLoadSession determines the appropriate action to take when it is time to load the session for the clientHello. There are several possible scenar
u_session_controller.go:85
↓ 1 callers
Method
shouldLoadSessionWriteBinders
shouldLoadSessionWriteBinders checks if `conn.loadSession` should proceed to write binders and marshal the client hello. If the utls implementation is
u_session_controller.go:350
↓ 1 callers
Method
shouldSendSessionTickets
()
handshake_server_tls13.go:942
↓ 1 callers
Function
shuffledCiphers
(r *prng)
u_parrots.go:3181
↓ 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:173
↓ 1 callers
Function
skipUint16LengthPrefixed
(s *cryptobyte.String)
ech.go:244
↓ 1 callers
Function
suiteID
(kemID, kdfID, aeadID uint16)
internal/hpke/hpke.go:290
↓ 1 callers
Method
syncSessionExts
syncSessionExts synchronizes the sessionController with the session-related extensions from the extension list after applying client hello specs. - I
u_session_controller.go:265
↓ 1 callers
Function
testConnReadNonzeroAndEOF
(t *testing.T, delay time.Duration)
tls_test.go:389
↓ 1 callers
Function
testTLS13OnlyClientHelloCipherSuite
(t *testing.T, ciphers []uint16)
handshake_client_test.go:2705
↓ 1 callers
Method
toPrivate12
()
u_public.go:141
↓ 1 callers
Method
toPrivate13
func kyberGoToCircl(kyberKey *mlkem768.DecapsulationKey, ecdhKey *ecdh.PrivateKey) (kem.PrivateKey, error) { return hybrid.Kyber768X25519().Unmarshal
u_public.go:85
↓ 1 callers
Method
toPublic12
()
u_public.go:161
↓ 1 callers
Method
toPublic13
()
u_public.go:110
↓ 1 callers
Method
uApplyPatch
()
u_conn.go:194
↓ 1 callers
Method
uLoadSession
()
u_conn.go:165
↓ 1 callers
Method
unmarshalHandshakeMessage
(data []byte, transcript transcriptHash)
conn.go:1118
↓ 1 callers
Method
utlsAboutToLoadSession
utlsAboutToLoadSession updates the loadSessionTracker to `UtlsAboutToCall` to signal the initiation of a session loading operation, provided that the
u_session_controller.go:101
↓ 1 callers
Method
utlsConnectionStateLocked
Extending (*Conn).connectionStateLocked()
u_conn.go:842
↓ 1 callers
Method
utlsHandshakeMessageType
Extending (*Conn).readHandshake() to support more customized handshake messages.
u_conn.go:826
↓ 1 callers
Method
utlsReadServerCertificate
This function is called by (*clientHandshakeStateTLS13).readServerCertificate() to retrieve the certificate out of a message read by (*Conn).readHands
u_handshake_client.go:24
↓ 1 callers
Method
utlsReadServerParameters
(encryptedExtensions *encryptedExtensionsMsg)
u_handshake_client.go:145
↓ 1 callers
Method
utlsUnmarshal
(extension uint16, extData cryptobyte.String)
u_handshake_messages.go:62
↓ 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:453
↓ 1 callers
Method
write
(data []byte)
conn.go:943
↓ 1 callers
Method
writeToUConn
(*UConn)
u_tls_extensions.go:93
Method
AddEcdheKeypair
(curveID CurveID, ecdheKey *ecdh.PrivateKey, ecdhePubKey *ecdh.PublicKey)
u_alias.go:25
Method
AddKemKeypair
(curveID CurveID, kemKey any, kemPubKey any)
u_alias.go:33
Function
AppendWithLen
AppendWithLen append i in the QUIC varint format with the desired length.
internal/quicvarint/varint.go:99
Method
ApplyPreset
(p *ClientHelloSpec)
u_quic.go:61
Function
BEAppendUint32
(b []byte, v uint32)
internal/byteorder/byteorder.go:111
Function
BEAppendUint64
(b []byte, v uint64)
internal/byteorder/byteorder.go:138
Function
BEPutUint16
(b []byte, v uint16)
internal/byteorder/byteorder.go:85
Function
BEPutUint32
(b []byte, v uint32)
internal/byteorder/byteorder.go:103
Function
BEUint32
(b []byte)
internal/byteorder/byteorder.go:98
Function
BEUint64
(b []byte)
internal/byteorder/byteorder.go:120
Function
BenchmarkCertCache
(b *testing.B)
cache_test.go:83
Function
BenchmarkHandshakeServer
(b *testing.B)
handshake_server_test.go:1377
Function
BenchmarkLatency
(b *testing.B)
tls_test.go:1105
Function
BenchmarkThroughput
(b *testing.B)
tls_test.go:1008
Function
BoringPaddingStyle
https://github.com/google/boringssl/blob/7d7554b6b3c79e707e25521e61e066ce2b996e4c/ssl/t1_lib.c#L2803
u_tls_extensions.go:1111
Method
BuildHandshakeStateWithoutSession
BuildHandshakeStateWithoutSession is the same as BuildHandshakeState, but does not set the session. This is only useful when you want to inspect the C
u_conn.go:104
Function
Builder
Builder reports the name of the builder running this test (for example, "linux-amd64" or "windows-386-gce"). If the test is not running on the build i
testenv/testenv.go:90
Method
CipherSuite
Ciphersuite negotiated for the session
u_public.go:721
Function
CleanCmdEnv
CleanCmdEnv will fill cmd.Env with the environment, excluding certain variables that could modify the behavior of the Go tools such as GODEBUG and GOT
testenv/testenv.go:330
Method
Close
Close closes the connection and stops any in-progress handshake.
quic.go:244
Method
Close
Close closes the connection and stops any in-progress handshake.
u_quic.go:86
Method
ConnectionState
ConnectionState returns basic TLS details about the connection.
quic.go:337
Method
ConnectionState
ConnectionState returns basic TLS details about the connection.
u_quic.go:155
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:514
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:352
Method
Dial
Dial attempts to establish connection to given address using different HelloIDs. If a working HelloID is found, it is used again for subsequent Dials.
u_roller.go:52
Method
EMS
()
u_public.go:730
Function
EnableWeakCiphers
EnableWeakCiphers allows utls connections to continue in some cases, when weak cipher was chosen. This provides better compatibility with servers on t
u_common.go:753
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:311
Method
Error
()
common.go:1760
Method
Error
()
conn.go:194
← previous
next →
601–700 of 1,354, ranked by callers