MCPcopy Index your code

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

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

↓ 1 callersMethodPatchBuiltHello
PatchBuiltHello is called once the hello message is fully applied and marshaled. Its purpose is to update the binders of PSK (Pre-Shared Key) identiti
u_pre_shared_key.go:89
↓ 1 callersMethodPerm
Intn is equivalent to math/read.Perm.
u_prng.go:172
↓ 1 callersFunctionQUICClient
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
↓ 1 callersFunctionQUICServer
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
↓ 1 callersMethodRawClientHello
RawClientHello returns a ClientHelloSpec which is based on the ClientHello raw bytes that is passed in as the raw argument. It was renamed from Finge
u_fingerprinter.go:45
↓ 1 callersMethodRead
Read reads random bytes from the PRNG stream into b. Read conforms to io.Reader and always returns len(p), nil.
u_prng.go:109
↓ 1 callersMethodRead
Read implements TLSExtension.
u_ech.go:177
↓ 1 callersMethodReadCipherSuites
ReadCipherSuites is a helper function to construct a list of cipher suites from a []byte into []uint16. example: []byte{0x13, 0x01, 0x13, 0x02, 0x13,
u_common.go:203
↓ 1 callersMethodReadCompressionMethods
ReadCompressionMethods is a helper function to construct a list of compression methods from a []byte into []uint8.
u_common.go:219
↓ 1 callersMethodReadTLSExtensions
ReadTLSExtensions is a helper function to construct a list of TLS extensions from a byte slice into []TLSExtension.
u_common.go:226
↓ 1 callersMethodRemoveSNIExtension
RemoveSNIExtension removes SNI from the list of extensions sent in ClientHello It returns an error when used with HelloGolang ClientHelloID
u_conn.go:280
↓ 1 callersMethodResumptionState
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:408
↓ 1 callersMethodSeal
(out, nonce, plaintext, additionalData []byte)
cipher_suites.go:488
↓ 1 callersMethodSendSessionTicket
SendSessionTicket sends a session ticket to the client. It produces connection events, which may be read with [QUICConn.NextEvent]. Currently, it can
quic.go:303
↓ 1 callersMethodSetOmitEmptyPsk
(val bool)
u_pre_shared_key.go:78
↓ 1 callersMethodSetSessionTicketExtension
SetSessionTicket sets the session ticket extension. If extension is nil, this will be a no-op.
u_conn.go:225
↓ 1 callersMethodSetTLSVers
SetTLSVers sets min and max TLS version in all appropriate places. Function will use first non-zero version parsed in following order: 1. Provided min
u_conn.go:696
↓ 1 callersMethodSetUnderlyingConn
(c net.Conn)
u_conn.go:757
↓ 1 callersFunctionSetupReceipient
(kemID, kdfID, aeadID uint16, priv *ecdh.PrivateKey, info, encPubEph []byte)
internal/hpke/hpke.go:240
↓ 1 callersMethodStoreSession
StoreSession stores a session previously received in a QUICStoreSession event in the ClientSessionCache. The application may process additional events
quic.go:322
↓ 1 callersMethodString
()
internal/quicvarint/protocol/protocol.go:83
↓ 1 callersMethodSum
(b []byte)
cipher_suites.go:605
↓ 1 callersMethodTemporary
()
tls.go:105
↓ 1 callersFunctionUTLSIdToSpec
UTLSIdToSpec converts a ClientHelloID to a corresponding ClientHelloSpec. Exported internal function utlsIdToSpec per request.
u_parrots.go:29
↓ 1 callersMethodUnmarshalBinary
(data []byte)
handshake_server_tls13.go:477
↓ 1 callersMethodUnmarshalJSON
UnmarshalJSON unmarshals the JSON-encoded data into the extension.
u_tls_extensions.go:119
↓ 1 callersMethodUpdate
(clientHelloUnpaddedLen int)
u_tls_extensions.go:1066
↓ 1 callersMethodWrite
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:1206
↓ 1 callersMethodWrite
Write implements TLSExtensionWriter.
u_ech.go:208
↓ 1 callersMethodaddOne
()
internal/hpke/hpke.go:319
↓ 1 callersFunctionallTrue
(slice []T, predicate func(i int, t *T) bool)
u_common.go:790
↓ 1 callersMethodapplyPresetByID
(id ClientHelloID)
u_parrots.go:2736
↓ 1 callersMethodbitLen
()
internal/hpke/hpke.go:324
↓ 1 callersFunctionbuildRetryConfigList
(keys []EncryptedClientHelloKey)
ech.go:630
↓ 1 callersMethodbytes
()
internal/hpke/hpke.go:328
↓ 1 callersFunctioncertificateRequestInfoFromMsg
certificateRequestInfoFromMsg generates a CertificateRequestInfo from a TLS <= 1.2 CertificateRequest, making an effort to fill in missing information
handshake_client.go:1250
↓ 1 callersFunctioncertificatesToBytesSlice
(certs []*x509.Certificate)
ticket.go:173
↓ 1 callersMethodcheckForResumption
()
handshake_server_tls13.go:330
↓ 1 callersFunctioncheckUTLSExtensionsEquality
(t *testing.T, expected, actual TLSExtension)
u_fingerprinter_test.go:80
↓ 1 callersFunctioncheckUTLSFingerPrintClientHello
(t *testing.T, clientHelloID ClientHelloID, serverName string)
u_fingerprinter_test.go:188
↓ 1 callersMethodclientHandshake
clientHandshakeWithOneState checks that exactly one expected state is set (1.2 or 1.3) and performs client TLS handshake with that state
u_handshake_client.go:383
↓ 1 callersMethodclientHandshake
(ctx context.Context)
handshake_client.go:270
↓ 1 callersFunctioncompareClientHelloFields
(t *testing.T, fieldName string, expected, actual *PubClientHelloMsg)
u_fingerprinter_test.go:45
↓ 1 callersMethodconnFromCommand
connFromCommand starts opens a listening socket and starts the reference client to connect to it. It returns a recordingConn that wraps the resulting
handshake_server_test.go:614
↓ 1 callersMethoddecompressCert
called by (*clientHandshakeStateTLS13).utlsReadServerCertificate() when UtlsCompressCertExtension is used
u_handshake_client.go:51
↓ 1 callersMethoddecrypt
decrypt authenticates and decrypts the record if protection is active at this stage. The returned plaintext might overlap with the input.
conn.go:343
↓ 1 callersFunctiondefaultCurvePreferences
Defaults are collected in this file to allow distributions to more easily patch them to apply local policies. var tlsmlkem = godebug.New("tlsmlkem") [
defaults.go:19
↓ 1 callersMethoddoFullHandshake
()
handshake_client.go:686
↓ 1 callersMethoddoFullHandshake
()
handshake_server.go:582
↓ 1 callersMethoddoHelloRetryRequest
(selectedGroup CurveID)
handshake_server_tls13.go:546
↓ 1 callersMethoddoResumeHandshake
()
handshake_server.go:549
↓ 1 callersFunctionencodeInnerClientHello
[uTLS SECTION BEGIN]
ech.go:211
↓ 1 callersMethodencrypt
encrypt encrypts payload, adding the appropriate nonce and/or MAC, and appends it to record, which must already contain the record header.
conn.go:483
↓ 1 callersMethodestablishHandshakeKeys
[uTLS] SECTION END
handshake_client_tls13.go:582
↓ 1 callersMethodevict
evict removes a cacheEntry from the cache.
cache.go:72
↓ 1 callersFunctionextractRawExtensions
(hello *clientHelloMsg)
ech.go:257
↓ 1 callersMethodfinalCheck
finalCheck performs a comprehensive check on the updated state to ensure the correctness of the changes. If the checks pass successfully, the sessionC
u_session_controller.go:136
↓ 1 callersFunctionfipsAllowCert
(c *x509.Certificate)
common.go:1807
↓ 1 callersFunctionfipsAllowChain
(chain []*x509.Certificate)
common.go:1793
↓ 1 callersFunctionforgeConn
()
examples/old/examples.go:283
↓ 1 callersMethodgenerateClientKeyExchange
(*Config, *clientHelloMsg, *x509.Certificate)
key_agreement.go:35
↓ 1 callersMethodgenerateRandomizedSpec
()
u_parrots.go:2946
↓ 1 callersMethodgenerateServerKeyExchange
On the server side, the first two methods are called in order. In the case that the key agreement protocol doesn't use a ServerKeyExchange message, ge
key_agreement.go:27
↓ 1 callersFunctiongenericExtension
(id uint16, name string)
u_clienthello_json.go:158
↓ 1 callersMethodgetCachedPrivatePtr
()
u_public.go:433
↓ 1 callersMethodgetPrivateObj
()
u_public.go:585
↓ 1 callersMethodgetPrivatePtr
()
u_public.go:391
↓ 1 callersMethodgetPublicPtr
()
u_public.go:441
↓ 1 callersMethodhandlePostHandshakeMessage
handlePostHandshakeMessage processes a handshake message arrived after the handshake is complete. Up to TLS 1.2, it indicates the start of a renegotia
u_conn.go:957
↓ 1 callersMethodhandleRenegotiation
handleRenegotiation processes a HelloRequest handshake message.
conn.go:1263
↓ 1 callersMethodhandleRenegotiation
handleRenegotiation processes a HelloRequest handshake message.
u_conn.go:905
↓ 1 callersMethodhandshakeContext
(ctx context.Context)
conn.go:1521
↓ 1 callersMethodhandshakeContext
(ctx context.Context)
u_conn.go:317
↓ 1 callersFunctionhttp2isBadCipher
http2isBadCipher is copied from net/http. TODO: if it ends up exposed somewhere, use that instead.
tls_test.go:1662
↓ 1 callersFunctionhttpGetOverConn
(conn net.Conn, alpn string)
examples/ech/main.go:87
↓ 1 callersFunctionillegalClientHelloChange
illegalClientHelloChange reports whether the two ClientHello messages are different, with the exception of the changes allowed before and after a Hell
handshake_server_tls13.go:673
↓ 1 callersMethodinit
alias init initializes the GREASEEncryptedClientHelloExtension with random values if they are not set. Based on cloudflare/go's echGenerateGreaseExt(
u_ech.go:65
↓ 1 callersMethodinitPskExt
initPSK initializes the PSK extension using a valid session. The PSK extension should not be initialized previously, and the parameters must not be ni
u_session_controller.go:166
↓ 1 callersMethodinitSessionTicketExt
initSessionTicketExt initializes the ticket and sets the state to `TicketInitialized`.
u_session_controller.go:148
↓ 1 callersMethodisSessionLocked
()
u_session_controller.go:68
↓ 1 callersFunctionkyberDecapsulate
kyberDecapsulate implements decapsulation according to Kyber Round 3.
u_key_schedule.go:10
↓ 1 callersFunctionkyberSharedSecret
(c, K []byte)
u_key_schedule.go:18
↓ 1 callersMethodloadData
()
handshake_server_test.go:674
↓ 1 callersFunctionlocalServer
change to 1 or 2 to exercise localServer/localPipe handling of mismatches
handshake_test.go:321
↓ 1 callersMethodmakeClientHelloForApplyPreset
()
u_handshake_client.go:170
↓ 1 callersMethodmarshal
()
handshake_messages.go:400
↓ 1 callersMethodmarshal
()
handshake_messages.go:1170
↓ 1 callersMethodmarshal
()
handshake_messages.go:1287
↓ 1 callersMethodmarshalMsg
(echInner bool)
handshake_messages.go:108
↓ 1 callersMethodmaxPayloadSizeForWrite
maxPayloadSizeForWrite returns the maximum TLS payload size to use for the next application data record. There is the following trade-off: - For late
conn.go:896
↓ 1 callersFunctionmd5SHA1Hash
md5SHA1Hash implements TLS 1.0's hybrid hash function which consists of the concatenation of an MD5 and SHA1 hash.
key_agreement.go:117
↓ 1 callersMethodnetDialer
()
tls.go:201
↓ 1 callersFunctionnewConstantTimeHash
(h func() hash.Hash)
cipher_suites.go:607
↓ 1 callersFunctionnewOpensslOutputSink
()
handshake_client_test.go:90
↓ 1 callersFunctionnewPRNGWithSaltedSeed
newPRNGWithSaltedSeed initializes a new PRNG using a seed derived from an existing seed and a salt with NewSaltedSeed.
u_prng.go:99
↓ 1 callersFunctionnewSaltedPRNGSeed
newSaltedPRNGSeed creates a new seed derived from an existing seed and a salt. A HKDF is applied to the seed and salt. newSaltedPRNGSeed is intended
u_prng.go:48
↓ 1 callersFunctionnewSessionController
newSessionController constructs a new SessionController
u_session_controller.go:56
↓ 1 callersFunctionnewUQUICConn
(uconn *UConn)
u_quic.go:31
↓ 1 callersFunctionnoEKMBecauseNoEMS
noEKMBecauseNoEMS is used as a value of ConnectionState.ekm when Extended Master Secret is not negotiated and thus we wish to fail all key-material ex
prf.go:265
↓ 1 callersMethodonEnterLoadSessionCheck
onEnterLoadSessionCheck is intended to be invoked upon entering the `conn.loadSession` function. It is designed to ensure the correctness of the utls
u_session_controller.go:320
← previousnext →501–600 of 1,354, ranked by callers