MCPcopy Index your code

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

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

↓ 2 callersMethodLen
()
u_tls_extensions.go:1543
↓ 2 callersMethodLen
()
u_tls_extensions.go:1602
↓ 2 callersMethodLen
()
u_tls_extensions.go:1644
↓ 2 callersMethodLen
()
u_tls_extensions.go:1716
↓ 2 callersMethodLen
()
u_tls_extensions.go:1753
↓ 2 callersMethodLen
()
u_tls_extensions.go:1881
↓ 2 callersMethodLen
()
u_pre_shared_key.go:183
↓ 2 callersFunctionMakeConnWithCompleteHandshake
MakeConnWithCompleteHandshake allows to forge both server and client side TLS connections. Major Hack Alert.
u_conn.go:767
↓ 2 callersFunctionMustHaveGoBuild
MustHaveGoBuild checks that the current system can build programs with ``go build'' and then run them with os.StartProcess or exec.Command. If not, Mu
testenv/testenv.go:114
↓ 2 callersFunctionNewEarlySecretFromSecret
(hash func() H, secret []byte)
internal/tls13/u_tls13.go:5
↓ 2 callersFunctionNewPRNGSeed
NewPRNGSeed creates a new PRNG seed using crypto/rand.Read.
u_prng.go:34
↓ 2 callersMethodNonceSize
()
cipher_suites.go:484
↓ 2 callersFunctionPRF
PRF implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, Section 5 and allowed by SP 800-135, Revision 1, Section 4.2.2.
internal/tls12/tls12.go:14
↓ 2 callersMethodRemoteAddr
()
handshake_test.go:294
↓ 2 callersMethodResumptionBinderKey
()
internal/tls13/tls13.go:81
↓ 2 callersMethodSetClientRandom
SetClientRandom sets client random explicitly. BuildHandshakeFirst() must be called before SetClientRandom. r must to be 32 bytes long.
u_conn.go:257
↓ 2 callersMethodSetIV
([]byte)
conn.go:338
↓ 2 callersMethodSetSessionState
SetSessionState sets the session ticket, which may be preshared or fake. If session is nil, the body of session ticket extension will be unset, but th
u_conn.go:214
↓ 2 callersMethodTemporary
()
conn.go:197
↓ 2 callersFunctionTestingOnlyExporterSecret
(s *ExporterMasterSecret)
internal/tls13/tls13.go:177
↓ 2 callersFunctionUint8to16
Uint8to16 converts a slice of uint8 to a slice of uint16. e.g. []uint8{0x00, 0x01, 0x00, 0x02} -> []uint16{0x0001, 0x0002}
internal/helper/typeconv.go:11
↓ 2 callersFunctionVersionName
VersionName returns the name for the provided TLS version number (e.g. "TLS 1.3"), or a fallback representation of the value if the version is not imp
common.go:46
↓ 2 callersMethodWrite
Write writes the extension data as a byte slice, up to len(b) bytes from b. It returns the number of bytes written (0 <= n <= len(b)) and any error en
u_tls_extensions.go:112
↓ 2 callersMethodWrite
Copy-pasted from tls.Conn in its entirety. But c.Handshake() is now utls' one, not tls. Write writes data to the connection.
u_conn.go:427
↓ 2 callersFunctionaddBytesWithLength
addBytesWithLength appends a sequence of bytes to the cryptobyte.Builder. If the length of the sequence is not the value specified, it produces an err
handshake_messages.go:26
↓ 2 callersFunctionaddUint64
addUint64 appends a big-endian, 64-bit value to the cryptobyte.Builder.
handshake_messages.go:37
↓ 2 callersFunctionaesgcmPreferred
aesgcmPreferred returns whether the first known cipher in the preference list is an AES-GCM cipher, implying the peer has hardware support for it.
cipher_suites.go:391
↓ 2 callersFunctionallCipherSuites
()
handshake_test.go:395
↓ 2 callersFunctionanyTrue
(slice []T, predicate func(i int, t *T) bool)
u_common.go:781
↓ 2 callersMethodassertCanSkip
(caller, extensionName string)
u_session_controller.go:126
↓ 2 callersFunctionassertEquality
(t *testing.T, fieldName string, expected, actual interface{})
u_fingerprinter_test.go:17
↓ 2 callersMethodbuildHandshakeState
(loadSession bool)
u_conn.go:108
↓ 2 callersFunctioncheckALPN
checkALPN ensure that the server's choice of ALPN protocol is compatible with the protocols that we advertised in the ClientHello.
handshake_client.go:980
↓ 2 callersMethodcheckForResumption
checkForResumption reports whether we should perform resumption on this connection.
handshake_server.go:451
↓ 2 callersFunctioncheckKeySize
var tlsmaxrsasize = godebug.New("tlsmaxrsasize") // [uTLS] unused
handshake_client.go:1105
↓ 2 callersFunctioncheckOpenSSLVersion
checkOpenSSLVersion ensures that the version of OpenSSL looks reasonable before updating the test data.
handshake_test.go:72
↓ 2 callersMethodcheckServerHelloOrHRR
checkServerHelloOrHRR does validity checks that apply to both ServerHello and HelloRetryRequest messages. It sets hs.suite.
handshake_client_tls13.go:182
↓ 2 callersFunctioncipherLen
cipherLen returns the length of a ciphertext corresponding to a message of length mLen.
u_hpke.go:28
↓ 2 callersMethodclientSum
clientSum returns the contents of the verify_data member of a client's Finished message.
prf.go:215
↓ 2 callersMethodclone
()
handshake_messages.go:717
↓ 2 callersMethodcloseNotify
()
conn.go:1473
↓ 2 callersMethodcomputeAndUpdateOuterECHExtension
(inner *clientHelloMsg, ech *echClientContext, useKey bool)
u_conn.go:506
↓ 2 callersFunctioncomputeAndUpdatePSK
(m *clientHelloMsg, binderKey []byte, transcript hash.Hash, finishedHash func([]byte, hash.Hash) []byte)
handshake_client.go:1362
↓ 2 callersMethodconnFromCommand
connFromCommand starts the reference server process, connects to it and returns a recordingConn for the connection. The stdin return value is an opens
handshake_client_test.go:173
↓ 2 callersFunctiondecryptECHPayload
(context *hpke.Receipient, hello, payload []byte)
ech.go:400
↓ 2 callersFunctiondial
(ctx context.Context, netDialer *net.Dialer, network, addr string, config *Config)
tls.go:121
↓ 2 callersMethodechTranscriptMsg
(outer *clientHelloMsg, echCtx *echClientContext)
u_handshake_client.go:577
↓ 2 callersMethodestablishKeys
()
handshake_client.go:875
↓ 2 callersMethodestablishKeys
()
handshake_server.go:786
↓ 2 callersFunctionexpectError
(t *testing.T, err error, sub string)
handshake_server_test.go:1710
↓ 2 callersMethodexplicitNonceLen
explicitNonceLen returns the number of bytes of explicit nonce or IV included in each record. Explicit nonces are present only in CBC modes after TLS
conn.go:260
↓ 2 callersMethodexplicitNonceLen
explicitNonceLen returns the number of bytes of explicit nonce included in each record. This is eight for older AEADs and zero for modern ones.
cipher_suites.go:447
↓ 2 callersMethodexportKeyingMaterial
exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to RFC 8446, Section 7.5.
key_schedule.go:46
↓ 2 callersFunctionextMasterFromPreMasterSecret
extMasterFromPreMasterSecret generates the extended master secret from the pre-master secret. See RFC 7627.
prf.go:122
↓ 2 callersMethodextensionsList
()
u_conn.go:493
↓ 2 callersFunctionextractPadding
extractPadding returns, in constant time, the length of the padding to remove from the end of payload. It also returns a byte which is equal to 255 if
conn.go:284
↓ 2 callersFunctiongenerateRandomizedSpec
( id *ClientHelloID, serverName string, nextProtos []string, )
u_parrots.go:2950
↓ 2 callersMethodgetClientCertificate
(cri *CertificateRequestInfo)
handshake_client.go:1314
↓ 2 callersMethodgetPublicObj
()
u_public.go:531
↓ 2 callersMethodhandleKeyUpdate
(keyUpdate *keyUpdateMsg)
conn.go:1338
↓ 2 callersMethodhandleNewSessionTicket
(msg *newSessionTicketMsgTLS13)
handshake_client_tls13.go:1029
↓ 2 callersMethodhandshake
()
handshake_server.go:67
↓ 2 callersFunctionhasSymlink
()
testenv/testenv_notwin.go:14
↓ 2 callersMethodhashForClientCertificate
hashForClientCertificate returns the handshake messages so far, pre-hashed if necessary, suitable for signing by a TLS client certificate.
prf.go:227
↓ 2 callersFunctionhashForServerKeyExchange
hashForServerKeyExchange hashes the given slices and returns their digest using the given hash function (for TLS 1.2) or using a default based on the
key_agreement.go:132
↓ 2 callersMethodincrementNonce
()
internal/hpke/hpke.go:266
↓ 2 callersMethodinitLegacySessionTicketKeyRLocked
initLegacySessionTicketKeyRLocked ensures the legacy SessionTicketKey field is randomized if empty, and that sessionTicketKeys is populated from it ot
common.go:1032
↓ 2 callersFunctioninitializationGuard
(extension E, initializer I)
u_session_controller.go:141
↓ 2 callersFunctionisPQKeyExchange
(curve CurveID)
common.go:161
↓ 2 callersFunctionisTimeoutError
(err error)
tls_test.go:360
↓ 2 callersMethodkeySharesLen
()
u_tls_extensions.go:1234
↓ 2 callersFunctionlatency
(b *testing.B, version uint16, bps int, dynamicRecordSizingDisabled bool)
tls_test.go:1052
↓ 2 callersMethodleaf
leaf returns the parsed leaf certificate, either from c.Leaf or by parsing the corresponding c.Certificate[0].
common.go:1626
↓ 2 callersMethodloadData
()
handshake_client_test.go:278
↓ 2 callersFunctionmakeSupportedVersions
(minVers, maxVers uint16)
u_conn.go:817
↓ 2 callersFunctionmapSlice
(slice []T, transform func(T) U)
u_common.go:765
↓ 2 callersFunctionmarshalCertificate
(b *cryptobyte.Builder, certificate Certificate)
handshake_messages.go:1525
↓ 2 callersMethodmarshalMsgReorderOuterExts
(echInner bool, outerExts []uint16)
handshake_messages.go:113
↓ 2 callersFunctionnegotiateALPN
negotiateALPN picks a shared ALPN protocol that both sides support in server preference order. If ALPN is not configured or the peer doesn't support i
handshake_server.go:319
↓ 2 callersFunctionnewContext
(sharedSecret []byte, kemID, kdfID, aeadID uint16, info []byte)
internal/hpke/hpke.go:182
↓ 2 callersFunctionnewDHKem
(kemID uint16)
internal/hpke/hpke.go:70
↓ 2 callersFunctionnewPRNG
newPRNG generates a seed and creates a PRNG with that seed.
u_prng.go:75
↓ 2 callersFunctionnewQUICConn
(conn *Conn, config *QUICConfig)
quic.go:187
↓ 2 callersMethodnextNonce
()
internal/hpke/hpke.go:258
↓ 2 callersMethodnextTrafficSecret
This file contains the functions necessary to compute the TLS 1.3 key schedule. See RFC 8446, Section 7. nextTrafficSecret generates the next traffic
key_schedule.go:23
↓ 2 callersMethodoriginalBytes
originalBytes should return the original bytes that were passed to unmarshal to create the message. If the message was not produced by unmarshal, it s
common.go:1644
↓ 2 callersMethodoverrideExtension
(extension Initializable, override func(), initializedState sessionControllerState)
u_session_controller.go:231
↓ 2 callersFunctionpHash
pHash implements the P_hash function, as defined in RFC 4346, Section 5.
prf.go:31
↓ 2 callersFunctionparseECHConfig
(enc []byte)
ech.go:59
↓ 2 callersFunctionparseECHExt
(ext []byte)
ech.go:502
↓ 2 callersFunctionparseTestData
(r io.Reader)
handshake_test.go:181
↓ 2 callersMethodpickCertificate
()
handshake_server_tls13.go:498
↓ 2 callersFunctionpickECHCipherSuite
(suites []echCipher)
ech.go:194
↓ 2 callersMethodpickTLSVersion
(serverHello *serverHelloMsg)
handshake_client.go:559
↓ 2 callersFunctionprf12
prf12 implements the TLS 1.2 pseudo-random function, as defined in RFC 5246, Section 5.
prf.go:74
↓ 2 callersMethodprocessClientHello
()
handshake_server_tls13.go:107
↓ 2 callersMethodquicGetTransportParameters
()
quic.go:445
↓ 2 callersMethodquicHandshakeComplete
()
quic.go:459
↓ 2 callersMethodquicRejectedEarlyData
()
quic.go:465
↓ 2 callersMethodquicResumeSession
(session *SessionState)
quic.go:417
← previousnext →301–400 of 1,354, ranked by callers