MCPcopy Create free account

hub / github.com/refraction-networking/utls / functions

Functions1,354 in github.com/refraction-networking/utls

↓ 1 callersMethodonLoadSessionReturn
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 callersMethodoverridePskExt
overridePskExt allows the user of utls to customize the psk extension.
u_session_controller.go:243
↓ 1 callersMethodoverrideSessionTicketExt
overridePskExt allows the user of utls to customize the session ticket extension.
u_session_controller.go:248
↓ 1 callersFunctionpHash
pHash implements the P_hash function, as defined in RFC 5246, Section 5.
internal/tls12/tls12.go:25
↓ 1 callersFunctionparsePrivateKey
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 callersFunctionpeekError
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 callersMethodpickCipherSuite
()
handshake_client.go:665
↓ 1 callersFunctionprfFuncV1ToV2
(v1 prfFuncOld)
u_public.go:571
↓ 1 callersFunctionprfFuncV2ToV1
(v2 prfFunc)
u_public.go:579
↓ 1 callersMethodprivate13KeyShareKeys
()
u_public.go:67
↓ 1 callersMethodprocessClientKeyExchange
(*Config, *Certificate, *clientKeyExchangeMsg, uint16)
key_agreement.go:28
↓ 1 callersMethodprocessECHClientHello
(outer *clientHelloMsg)
ech.go:559
↓ 1 callersMethodprocessHelloRetryRequest
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 callersMethodprocessServerHello
()
handshake_client.go:904
↓ 1 callersMethodprocessServerHello
()
handshake_client_tls13.go:506
↓ 1 callersMethodprocessServerKeyExchange
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 callersFunctionpublicKey
(priv any)
generate_cert.go:40
↓ 1 callersMethodquicReadHandshakeBytes
(n int)
quic.go:375
↓ 1 callersMethodquicStoreSession
(session *SessionState)
quic.go:431
↓ 1 callersMethodquicWriteCryptoData
(level QUICEncryptionLevel, data []byte)
quic.go:402
↓ 1 callersMethodrandomizePayload
(encodedHelloInnerLen uint16)
u_ech.go:149
↓ 1 callersMethodreadClientCertificate
()
handshake_server_tls13.go:1036
↓ 1 callersMethodreadClientFinished
()
handshake_server_tls13.go:1125
↓ 1 callersMethodreadServerCertificate
()
handshake_client_tls13.go:762
↓ 1 callersMethodreadServerFinished
()
handshake_client_tls13.go:879
↓ 1 callersMethodreadServerParameters
()
handshake_client_tls13.go:685
↓ 1 callersFunctionreadUint64
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 callersFunctionremoveRC4Ciphers
(s []uint16)
u_parrots.go:3227
↓ 1 callersFunctionremoveRandomCiphers
(r *prng, s []uint16, maxRemovalProbability float64)
u_parrots.go:3160
↓ 1 callersMethodremoveSNIExtension
()
u_conn.go:288
↓ 1 callersFunctionrunMain
(m *testing.M)
handshake_test.go:427
↓ 1 callersMethodrunUTLS
(t *testing.T, write bool, hello helloStrategy, omitSNIExtension bool)
u_conn_test.go:462
↓ 1 callersMethodsaveSessionTicket
()
handshake_client.go:1059
↓ 1 callersMethodsendClientCertificate
()
handshake_client_tls13.go:928
↓ 1 callersMethodsendClientEncryptedExtensions
()
u_handshake_client.go:131
↓ 1 callersMethodsendClientFinished
()
handshake_client_tls13.go:1002
↓ 1 callersMethodsendServerCertificate
()
handshake_server_tls13.go:823
↓ 1 callersMethodsendServerFinished
()
handshake_server_tls13.go:890
↓ 1 callersMethodsendServerParameters
()
handshake_server_tls13.go:728
↓ 1 callersMethodserverFinishedReceived
to be called in (*clientHandshakeStateTLS13).handshake(), after hs.readServerFinished() and before hs.sendClientCertificate()
u_handshake_client.go:124
↓ 1 callersMethodserverResumedSession
()
handshake_client.go:897
↓ 1 callersMethodsetReadSecret
(level QUICEncryptionLevel, suite uint16, secret []byte)
quic_test.go:54
↓ 1 callersMethodsetWriteSecret
(level QUICEncryptionLevel, suite uint16, secret []byte)
quic_test.go:77
↓ 1 callersMethodshouldLoadSession
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 callersMethodshouldLoadSessionWriteBinders
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 callersMethodshouldSendSessionTickets
()
handshake_server_tls13.go:942
↓ 1 callersFunctionshuffledCiphers
(r *prng)
u_parrots.go:3181
↓ 1 callersFunctionsignatureSchemesForCertificate
signatureSchemesForCertificate returns the list of supported SignatureSchemes for a given certificate, based on the public key and the protocol versio
auth.go:173
↓ 1 callersFunctionskipUint16LengthPrefixed
(s *cryptobyte.String)
ech.go:244
↓ 1 callersFunctionsuiteID
(kemID, kdfID, aeadID uint16)
internal/hpke/hpke.go:290
↓ 1 callersMethodsyncSessionExts
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 callersFunctiontestConnReadNonzeroAndEOF
(t *testing.T, delay time.Duration)
tls_test.go:389
↓ 1 callersFunctiontestTLS13OnlyClientHelloCipherSuite
(t *testing.T, ciphers []uint16)
handshake_client_test.go:2705
↓ 1 callersMethodtoPrivate12
()
u_public.go:141
↓ 1 callersMethodtoPrivate13
func kyberGoToCircl(kyberKey *mlkem768.DecapsulationKey, ecdhKey *ecdh.PrivateKey) (kem.PrivateKey, error) { return hybrid.Kyber768X25519().Unmarshal
u_public.go:85
↓ 1 callersMethodtoPublic12
()
u_public.go:161
↓ 1 callersMethodtoPublic13
()
u_public.go:110
↓ 1 callersMethoduApplyPatch
()
u_conn.go:194
↓ 1 callersMethoduLoadSession
()
u_conn.go:165
↓ 1 callersMethodunmarshalHandshakeMessage
(data []byte, transcript transcriptHash)
conn.go:1118
↓ 1 callersMethodutlsAboutToLoadSession
utlsAboutToLoadSession updates the loadSessionTracker to `UtlsAboutToCall` to signal the initiation of a session loading operation, provided that the
u_session_controller.go:101
↓ 1 callersMethodutlsConnectionStateLocked
Extending (*Conn).connectionStateLocked()
u_conn.go:842
↓ 1 callersMethodutlsHandshakeMessageType
Extending (*Conn).readHandshake() to support more customized handshake messages.
u_conn.go:826
↓ 1 callersMethodutlsReadServerCertificate
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 callersMethodutlsReadServerParameters
(encryptedExtensions *encryptedExtensionsMsg)
u_handshake_client.go:145
↓ 1 callersMethodutlsUnmarshal
(extension uint16, extData cryptobyte.String)
u_handshake_messages.go:62
↓ 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:453
↓ 1 callersMethodwrite
(data []byte)
conn.go:943
↓ 1 callersMethodwriteToUConn
(*UConn)
u_tls_extensions.go:93
MethodAddEcdheKeypair
(curveID CurveID, ecdheKey *ecdh.PrivateKey, ecdhePubKey *ecdh.PublicKey)
u_alias.go:25
MethodAddKemKeypair
(curveID CurveID, kemKey any, kemPubKey any)
u_alias.go:33
FunctionAppendWithLen
AppendWithLen append i in the QUIC varint format with the desired length.
internal/quicvarint/varint.go:99
MethodApplyPreset
(p *ClientHelloSpec)
u_quic.go:61
FunctionBEAppendUint32
(b []byte, v uint32)
internal/byteorder/byteorder.go:111
FunctionBEAppendUint64
(b []byte, v uint64)
internal/byteorder/byteorder.go:138
FunctionBEPutUint16
(b []byte, v uint16)
internal/byteorder/byteorder.go:85
FunctionBEPutUint32
(b []byte, v uint32)
internal/byteorder/byteorder.go:103
FunctionBEUint32
(b []byte)
internal/byteorder/byteorder.go:98
FunctionBEUint64
(b []byte)
internal/byteorder/byteorder.go:120
FunctionBenchmarkCertCache
(b *testing.B)
cache_test.go:83
FunctionBenchmarkHandshakeServer
(b *testing.B)
handshake_server_test.go:1377
FunctionBenchmarkLatency
(b *testing.B)
tls_test.go:1105
FunctionBenchmarkThroughput
(b *testing.B)
tls_test.go:1008
FunctionBoringPaddingStyle
https://github.com/google/boringssl/blob/7d7554b6b3c79e707e25521e61e066ce2b996e4c/ssl/t1_lib.c#L2803
u_tls_extensions.go:1111
MethodBuildHandshakeStateWithoutSession
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
FunctionBuilder
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
MethodCipherSuite
Ciphersuite negotiated for the session
u_public.go:721
FunctionCleanCmdEnv
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
MethodClose
Close closes the connection and stops any in-progress handshake.
quic.go:244
MethodClose
Close closes the connection and stops any in-progress handshake.
u_quic.go:86
MethodConnectionState
ConnectionState returns basic TLS details about the connection.
quic.go:337
MethodConnectionState
ConnectionState returns basic TLS details about the connection.
u_quic.go:155
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:514
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:352
MethodDial
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
MethodEMS
()
u_public.go:730
FunctionEnableWeakCiphers
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
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:311
MethodError
()
common.go:1760
MethodError
()
conn.go:194
← previousnext →601–700 of 1,354, ranked by callers